
'WRAP VERSIONE MINIB3D

Function VGC_createCamera:tCamera()
   Return CreateCamera()
EndFunction 

Function VGC_CameraViewport(camera:tCamera,x:Int,y:Int,w:Int,h:Int)
	CameraViewport camera,x,y,w,h
End Function

Function VGC_renderWorld()
   RenderWorld()
EndFunction 

Function VGC_renderWorld_view()
		ViewMngr.View[0].Camera.ShowEntity()
		ViewMngr.View[1].Camera.ShowEntity()
		ViewMngr.View[2].Camera.ShowEntity()
		ViewMngr.View[3].Camera.ShowEntity()   

		tForm_MediaManager(ProgMngr.FormMngr.getQuad("media")).CameraThumb.HideEntity()
	RenderWorld()
End Function

Function VGC_renderWorld_Thumb()
		ViewMngr.View[0].Camera.HideEntity()
		ViewMngr.View[1].Camera.HideEntity()
		ViewMngr.View[2].Camera.HideEntity()
		ViewMngr.View[3].Camera.HideEntity()
		tForm_MediaManager(ProgMngr.FormMngr.getQuad("media")).CameraThumb.ShowEntity()
		DebugLog "render"
	RenderWorld()
End Function


Function VGC_updateWorld()
   UpdateWorld()
End Function


Function VGC_loadmesh:TEntity(file:String)
	Return LoadMesh(file)	
End Function
Function VGC_createCube:tEntity()
	Return CreateCube()
End Function

Function VGC_PositionEntity(entity:tEntity,x:Float,y:Float,z:Float)
	PositionEntity entity,x,y,z
End Function


