#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. |
Draw a 3D arrow.
pos | position of arrow | |
dir | direction of arrow | |
r | red | |
g | green | |
b | blue |
void DrawBalloon | ( | ) |
Draws balloon floating on the water.
void DrawBoat | ( | ) |
Draws a boat floating on the water.
void DrawInfo | ( | ) |
void DrawOnScreenInfo | ( | ) |
void DrawScene | ( | ) |
Draw scene.
This function calls all the other draw methods to generate the scene.
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.
x | the upper left x position | |
y | the upper left y position | |
text | the string to be printed |