C3DScreen::RenderScene

Top  Previous  Next

Syntax:

 

RenderScene(opt POINTER destrect = NULL ), int

 

Purpose:
Renders the scene to the Direct3D surface.

 

Parameters:

destrect - Optional clipping rectangle.

 

Returned value(s):

The current frames per second.

 

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:

destrect is a WINRECT UDT that can clip the output of RenderScene to a specific area of the screen.

 

See Also:

BeginScene