torque Torque Game Engine Documentation
TGE Version 1.5.2

engine/game/game.h File Reference


Functions

void GameRenderWorld ()
 Actually renders the world. This is the function that will render the scene ONLY - new guis, no damage flashes.
void GameRenderFilters (const CameraQuery &camq)
 Renders overlays such as damage flashes, white outs, and water masks. These are usually a color applied over the entire screen.
bool GameProcessCameraQuery (CameraQuery *query)
 Does the same thing as GameGetCameraTransform, but fills in other data including information about the far and near clipping planes.
bool GameGetCameraTransform (MatrixF *mat, Point3F *velocity)
 Gets the position, rotation, and velocity of the camera.
F32 GameGetCameraFov ()
 Gets the camera field of view angle.
void GameSetCameraFov (F32 fov)
 Sets the field of view angle of the camera.
void GameSetCameraTargetFov (F32 fov)
 Sets where the camera fov will be change to. This is for non-instantaneous zooms/retractions.
void GameUpdateCameraFov ()
 Update the camera fov to be closer to the target fov.
void GameInit ()
 Initializes graphics related console variables.
bool clientProcess (U32 timeDelta)
 Processes the next frame, including gui, rendering, and tick interpolation.
bool serverProcess (U32 timeDelta)
 Processes the next cycle on the server. This function will only have an effect when executed on the server.

Variables

const F32 MinCameraFov = 1.f
 min camera FOV
const F32 MaxCameraFov = 179.f
 max camera FOV


Function Documentation

void GameRenderWorld (  ) 

Actually renders the world. This is the function that will render the scene ONLY - new guis, no damage flashes.

void GameRenderFilters ( const CameraQuery camq  ) 

Renders overlays such as damage flashes, white outs, and water masks. These are usually a color applied over the entire screen.

bool GameProcessCameraQuery ( CameraQuery query  ) 

Does the same thing as GameGetCameraTransform, but fills in other data including information about the far and near clipping planes.

bool GameGetCameraTransform ( MatrixF mat,
Point3F velocity 
)

Gets the position, rotation, and velocity of the camera.

F32 GameGetCameraFov (  ) 

Gets the camera field of view angle.

void GameSetCameraFov ( F32  fov  ) 

Sets the field of view angle of the camera.

void GameSetCameraTargetFov ( F32  fov  ) 

Sets where the camera fov will be change to. This is for non-instantaneous zooms/retractions.

void GameUpdateCameraFov (  ) 

Update the camera fov to be closer to the target fov.

void GameInit (  ) 

Initializes graphics related console variables.

bool clientProcess ( U32  timeDelta  ) 

Processes the next frame, including gui, rendering, and tick interpolation.

This function will only have an effect when executed on the client.

bool serverProcess ( U32  timeDelta  ) 

Processes the next cycle on the server. This function will only have an effect when executed on the server.


Variable Documentation

const F32 MinCameraFov = 1.f

min camera FOV

const F32 MaxCameraFov = 179.f

max camera FOV




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen