BlitzUI - 3D compatible ?
I have try :
Graphics3D 640, 480, 16, 2
SetBuffer BackBuffer( )
HidePointer
Include "blitzui.bb"
;Load fonts and mouse cursors
;and collect information
Initialise( )
;Window
Toolbar = Window( 535, 0, 105, 478, "Toolbar", "0", 1, 0, 1, 1 )
btn001 = Button( 3, 5, 95, 24, "Button", "0", 1, 0, 0 )
cbo001 = ComboBox( 4, 36, 95, 19 )
AddComboBoxItem( cbo001, 0, "Tmp Item", "" )
AddComboBoxItem( cbo001, 0, "Combox", "" )
Cube=CreateCube()
PositionEntity Cube,0,0,0
Camera=CreateCamera()
PositionEntity Camera,0,0,-50
Repeat
;Draw the GUI and update the mouse
UpdateGUI( )
;Event Handling
Select app\Event
Case EVENT_WINDOW
Select app\WindowEvent
End Select
Case EVENT_MENU
Select app\MenuEvent
End Select
Case EVENT_GADGET
Select app\GadgetEvent
End Select
End Select
;Draw the mouse
DrawMouse( )
;Reset all GUI events
ResetEvents( )
RenderWorld
Flip
Until KeyHit( 1 ) Or app\Quit = True
;Free all images and controls created by BlitzUI
Destroy( )
End
But the gui disapear ???
I have try :
Graphics3D 640, 480, 16, 2
SetBuffer BackBuffer( )
HidePointer
Include "blitzui.bb"
;Load fonts and mouse cursors
;and collect information
Initialise( )
;Window
Toolbar = Window( 535, 0, 105, 478, "Toolbar", "0", 1, 0, 1, 1 )
btn001 = Button( 3, 5, 95, 24, "Button", "0", 1, 0, 0 )
cbo001 = ComboBox( 4, 36, 95, 19 )
AddComboBoxItem( cbo001, 0, "Tmp Item", "" )
AddComboBoxItem( cbo001, 0, "Combox", "" )
Cube=CreateCube()
PositionEntity Cube,0,0,0
Camera=CreateCamera()
PositionEntity Camera,0,0,-50
Repeat
;Draw the GUI and update the mouse
UpdateGUI( )
;Event Handling
Select app\Event
Case EVENT_WINDOW
Select app\WindowEvent
End Select
Case EVENT_MENU
Select app\MenuEvent
End Select
Case EVENT_GADGET
Select app\GadgetEvent
End Select
End Select
;Draw the mouse
DrawMouse( )
;Reset all GUI events
ResetEvents( )
RenderWorld
Flip
Until KeyHit( 1 ) Or app\Quit = True
;Free all images and controls created by BlitzUI
Destroy( )
End
But the gui disapear ???