Main Page | Data Structures | File List | Data Fields | Globals

render_matrix.h File Reference

Exposes functions to construct transformation and lighting matrices. More...

Go to the source code of this file.

Data Structures

struct  transinfo
 Rotation and translation information for transformations. More...

struct  lightinfo
 Direction and intensity information for parallel lighting. More...


Functions

Mat44 Render_MakeObjectToWorld (transinfo transform)
 Create an object->world matrix.

Mat44 Render_MakeWorldToCamera (float camerapos)
 Create a world->camera matrix.

Mat44 Render_MakeCameraToScreen ()
 Create a camera->screen matrix.

Mat44 Render_MakeLightMatrix (lightinfo lights, Mat44 objecttoworld)
 Create a matrix containing directional lighting information.


Detailed Description

Exposes functions to construct transformation and lighting matrices.


Function Documentation

Render_MakeCameraToScreen  ) 
 

Create a camera->screen matrix.

The camera->screen matrix is scaled to the current screen resolution.

Returns:
The camera->screen matrix.

Render_MakeLightMatrix lightinfo  lights,
Mat44  objecttoworld
 

Create a matrix containing directional lighting information.

The light matrix returned by this function is compatible with the VU lighting code.

Parameters:
lights Struct containing light directions and intensities.
objecttoworld The object to world matrix for the current object.
Returns:
A matrix containing directional and ambient light information.

Render_MakeObjectToWorld transinfo  transform  ) 
 

Create an object->world matrix.

Parameters:
transform Struct containing rotation and translation information.
Returns:
The object->world matrix.

Render_MakeWorldToCamera float  camerapos  ) 
 

Create a world->camera matrix.

The camera is assumed to be looking directly along the z-axis (x = 0, y = 0).

Parameters:
camerapos Position of the camera on the z-axis.
Returns:
The world->camera matrix.


Generated on Wed Apr 28 20:49:12 2004 for KISS Renderer by doxygen 1.3.6-20040222