minib3d within ignitionX GUI sliders

Monkey Forums/User Modules/minib3d within ignitionX GUI sliders

Vignoli(Posted 2015) [#1]
Hi,

I would like to know if it is possible to use minib3d, and put ignitionX GUI sliders on its top ?

This is a simple example in minib3d, if you can help me, please show me where to add ignitionX commands for a slider.

' RolistTable (HTML5)
' Free virtual table for paper RPG with tiles, characters, monsters, and fog of war

Import minib3d

Function Main()
	New Game
End

Class Game Extends App
	
	Field cam:TCamera
	
	Field light:TLight
	Field cube:TMesh, ground:TMesh
	Field brush:TBrush
	
	Field init_gl:Bool = False
	
	Method OnCreate()
	
		SetRender()	
		SetUpdateRate 30
		
	End

	Method Init()
		
		If init_gl Then Return	
		
		init_gl = True
		
		cam = CreateCamera()
		cam.CameraClsColor(0,0,00)
		cam.PositionEntity 0,4,-4
	
		light=CreateLight(2)
		light.PositionEntity 0,4,0
		
		cube=CreateCube()
		cube.ScaleEntity(0.5,0.5,0.5)
		PositionEntity cube,0,2,0
		cube.TurnEntity(0.0,45.0,0.0)
				
		brush = New TBrush
		brush.BrushColor(255,255,255)
		cube.PaintEntity(brush)
			
		ground = CreateGrid(10,10)
		ground.ScaleEntity(20,1.0,20)
		
	End
	
	Method OnUpdate()
		
		If Not init_gl Then Init(); Return
			
		UpdateWorld()
	End
	
	Method OnRender()

		RenderWorld()
					
	End

End