testshell/io/display.cpp File Reference

Functions for rendering. More...

#include "display.h"

Functions

void PrintString (float x, float y, const char *text)
 Prints a string on screen.
void DrawOnScreenInfo ()
 Draws on-screen info.
void DrawArrow (Vec3f pos, Vec3f dir, float r, float g, float b, bool inverse=false)
 Draw a 3D arrow.
void DrawInfo ()
 Draw info in world.
void DrawTerrain ()
 Draws a simple terrain.
void DrawSky ()
 Draws a sky.
void DrawBalloon ()
 Draws balloon floating on the water.
void DrawBoat ()
 Draws a boat floating on the water.
void DrawScene ()
 Draw scene.


Detailed Description

Functions for rendering.


Function Documentation

void DrawArrow ( Vec3f  pos,
Vec3f  dir,
float  r,
float  g,
float  b,
bool  inverse = false 
)

Draw a 3D arrow.

Parameters:
pos position of arrow
dir direction of arrow
r red
g green
b blue
See also:
DrawInfo()

void DrawBalloon (  ) 

Draws balloon floating on the water.

void DrawBoat (  ) 

Draws a boat floating on the water.

void DrawInfo (  ) 

Draw info in world.

Draws axis, wind direction and light direction.

See also:
DrawArrow()

void DrawOnScreenInfo (  ) 

Draws on-screen info.

Prints values and parameters on-screen.

See also:
PrintString()

void DrawScene (  ) 

Draw scene.

This function calls all the other draw methods to generate the scene.

See also:
DrawTerrain(), OVDrawWater(), DrawInfo() and DrawOnScreenInfo()

void DrawSky (  ) 

Draws a sky.

void DrawTerrain (  ) 

Draws a simple terrain.

void PrintString ( float  x,
float  y,
const char *  text 
)

Prints a string on screen.

The function use a Bitmap font to render a string.

Parameters:
x the upper left x position
y the upper left y position
text the string to be printed


Generated on Thu May 17 20:28:03 2007 for Ocean View by  doxygen 1.5.2