igiBeginMainMenuBar

Starts a menu bar across the top of the screen - common in editors and debug tools. Returns: 1 if the bar is showing.

IGI

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Starts a menu bar across the top of the screen - common in editors and debug tools. Returns: 1 if the bar is showing.

Technical Exegesis...

Starts a menu bar across the top of the screen - common in editors and debug tools. Add menus with igiBeginMenu, then call igiEndMainMenuBar.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.

Returns: 1 if the bar is showing.

Example

Example.bam
If igiBeginMainMenuBar() Then
    If igiBeginMenu("Debug") Then
        If igiMenuItem("Reset level") Then ResetLevel()
        igiEndMenu()
    EndIf
    igiEndMainMenuBar()
EndIf