torque Torque Game Engine Documentation
CVS Revision Label 1.3.x

Camera functions


Functions

F32 dglGetPixelScale ()
 Returns the pixel scale, namely:.
F32 dglGetWorldToScreenScale ()
 The scale factor of a world unit to a screen unit.
F32 dglProjectRadius (F32 dist, F32 radius)
 Returns the screen length of a line of distance "radius" that is "dist" units away from the camera that is perpendicular to the line of sight, namely:.


Function Documentation

F32 dglGetPixelScale  ) 
 

Returns the pixel scale, namely:.

viewPort.extent.x / 640.0

F32 dglGetWorldToScreenScale  ) 
 

The scale factor of a world unit to a screen unit.

F32 dglProjectRadius F32  dist,
F32  radius
 

Returns the screen length of a line of distance "radius" that is "dist" units away from the camera that is perpendicular to the line of sight, namely:.

(radius / dist) * worldToScreenScale




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