#include <fstream>
#include <math.h>
#include "common/wave_ex.h"
#include "glut-font/glut-font.h"
#include "perf/perf.h"
#include "pgmppm/pgmppm.h"
#include "wave-glut/camera.h"
#include "wave-glut/glut_2d.h"
#include "wave-glut/wave-glut.h"
#include "terrain/mini.h"
Go to the source code of this file.
Typedefs |
typedef short int | height_t |
Functions |
static point3d_t | s_lightPosition (0.0, 0.0, 0.0) |
static point3d_t | s_lightVelocity (0.0, 0.0,-0.01) |
static void | onExit (void) |
static bool | notifyPgmSize (IN void *ctx, IN int width, IN int height, IN int max_val) |
static void | notifyPgmPixel (IN void *ctx, IN int x, IN int y, IN int height) |
static void | setTerrain (IN const char *pgm_file, IN const char *ppm_file) |
static void | addLight (IN int gl_enum, IN const point3d_t &position) |
static void | setLights (IN const glut::Viewer &walker) |
static void | debugInfo (IN const glut::Viewer &viewer) |
static void | updatePosition (IO glut::Viewer &view) |
static void | onDisplay (void) |
static void | onIdle (void) |
static void | onKeys (IN byte_t key, IN int x, IN int y) |
static void | onSpecial (IN int key, IN int x, IN int y) |
static void | onReshape (IN int w, IN int h) |
int | main (IN int argc, IN const char *argv[]) |
Variables |
static const int | s_defaultWidth = 800 |
static const int | s_defaultHeight = 600 |
static int | s_screenWidth = s_defaultWidth |
static int | s_screenHeight = s_defaultHeight |
static int | s_winid = -1 |
static int | s_wmode = 0 |
static const int | s_delay = 100 |
static int | s_ignoreInput = s_delay |
static minitile * | s_tileset = NULL |
static minicache * | s_cache = NULL |
static int | s_updates = 5 |
static int | s_retval = 0 |
Typedef Documentation
Function Documentation
static point3d_t s_lightPosition |
( |
0. |
0, |
|
|
0. |
0, |
|
|
0. |
0 | |
|
) |
| | [static] |
static point3d_t s_lightVelocity |
( |
0. |
0, |
|
|
0. |
0, |
|
|
-0. |
01 | |
|
) |
| | [static] |
static void onExit |
( |
void |
|
) |
[static] |
static bool notifyPgmSize |
( |
IN void * |
ctx, |
|
|
IN int |
width, |
|
|
IN int |
height, |
|
|
IN int |
max_val | |
|
) |
| | [static] |
static void notifyPgmPixel |
( |
IN void * |
ctx, |
|
|
IN int |
x, |
|
|
IN int |
y, |
|
|
IN int |
height | |
|
) |
| | [static] |
static void setTerrain |
( |
IN const char * |
pgm_file, |
|
|
IN const char * |
ppm_file | |
|
) |
| | [static] |
static void addLight |
( |
IN int |
gl_enum, |
|
|
IN const point3d_t & |
position | |
|
) |
| | [static] |
static void setLights |
( |
IN const glut::Viewer & |
walker |
) |
[static] |
static void debugInfo |
( |
IN const glut::Viewer & |
viewer |
) |
[static] |
static void updatePosition |
( |
IO glut::Viewer & |
view |
) |
[static] |
static void onDisplay |
( |
void |
|
) |
[static] |
static void onIdle |
( |
void |
|
) |
[static] |
static void onKeys |
( |
IN byte_t |
key, |
|
|
IN int |
x, |
|
|
IN int |
y | |
|
) |
| | [static] |
static void onSpecial |
( |
IN int |
key, |
|
|
IN int |
x, |
|
|
IN int |
y | |
|
) |
| | [static] |
static void onReshape |
( |
IN int |
w, |
|
|
IN int |
h | |
|
) |
| | [static] |
int main |
( |
IN int |
argc, |
|
|
IN const char * |
argv[] | |
|
) |
| | |
Variable Documentation