C3DScreen::BeginScene

Top  Previous  Next

Syntax:

 

BeginScene(C3DCamera pCamera)

 

Purpose:
Prepares Direct3D to render objects using the specified camera.

 

Parameters:

pCamera - The camera to render the scene with.

 

Returned value(s):

None.

 

Application:

s.Clear(RGBA(0,0,0,255))
s.BeginScene(c)
scene.Draw()
s.RenderText(0,10,"FPS:"+STR$(fps),RGBA(255,255,0,255))
s.RenderText(0,30,"Use arrow keys to move around",RGBA(255,255,0,255))
fps = s.RenderScene()

 

Class Hierarchy

C3DScreen

 

Additional Info:

You can have as many cameras in your program as needed.  Each BeginScene must be paired with a RenderScene.  Drawing of objects, text, lights, etc must be done between BeginScene and RenderScene.

 

See Also:

RenderScene