RenderWorld()

Syntax

Result = RenderWorld([ElapsedPhysicTime])
Description
Renders the whole world on the screen. This function should be called once all 3D operations are finished and only one time per frame.

Parameters

ElapsedPhysicTime (optional) If set it will force the physic engine to use this value, in milliseconds, as elapsed time since the last call of RenderWorld. It can be useful to makes the physic simulation faster or slower than real-time.

Return value

Returns the elapsed time since the last frame in milliseconds. It can be useful to have an accurate time based simulation if the frame render time isn't stable.

Remarks

Once the RenderWorld() function has been performed, it's possible to use regular 2D functions like DisplaySprite() to display 2D sprites over the 3D world.

Supported OS

All

<- RayPick() - Engine3D Index - Roll() ->