#include <fstream>
#include <math.h>
#include "glut/glut.h"
#include "glut/glut_2d.h"
#include "mini/mini.h"
#include "glut/camera.h"
#include "glut-font/glut-font.h"
#include "perf/perf.h"
#include "pgmppm/pgmppm.h"
#include "common/wave_ex.h"
Go to the source code of this file.
Typedefs | |
typedef short int | height_t |
Functions | |
static void | onExit (void) |
static bool | notifyPgmSize (void *ctx, int width, int height, int max_val) |
static void | notifyPgmPixel (void *ctx, int x, int y, int height) |
static void | setTerrain (const char *pgm_file, const char *ppm_file) |
static void | addLight (int gl_enum, const point3d_t &position) |
static void | setLights (const glut::Viewer &walker) |
static void | debugInfo (const glut::Viewer &viewer) |
static void | updatePosition (glut::Viewer &view) |
static void | onDisplay (void) |
static void | onIdle (void) |
static void | onKeys (byte_t key, int x, int y) |
static void | onSpecial (int key, int x, int y) |
static void | onReshape (int w, int h) |
int | main (int argc, 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 point3d_t | s_lightPosition (0.0, 0.0, 0.0) |
static point3d_t | s_lightVelocity (0.0, 0.0,-0.01) |
static int | s_retval = 0 |
typedef short int height_t |
Definition at line 36 of file wave-glut/lib/mini/test/test.cpp.
static void onExit | ( | void | ) | [static] |
Definition at line 65 of file wave-glut/lib/mini/test/test.cpp.
static bool notifyPgmSize | ( | void * | ctx, | |
int | width, | |||
int | height, | |||
int | max_val | |||
) | [static] |
Definition at line 85 of file wave-glut/lib/mini/test/test.cpp.
static void notifyPgmPixel | ( | void * | ctx, | |
int | x, | |||
int | y, | |||
int | height | |||
) | [static] |
Definition at line 106 of file wave-glut/lib/mini/test/test.cpp.
static void setTerrain | ( | const char * | pgm_file, | |
const char * | ppm_file | |||
) | [static] |
Definition at line 120 of file wave-glut/lib/mini/test/test.cpp.
static void addLight | ( | int | gl_enum, | |
const point3d_t & | position | |||
) | [static] |
Definition at line 169 of file wave-glut/lib/mini/test/test.cpp.
static void setLights | ( | const glut::Viewer & | walker | ) | [static] |
Definition at line 202 of file wave-glut/lib/mini/test/test.cpp.
static void debugInfo | ( | const glut::Viewer & | viewer | ) | [static] |
Definition at line 227 of file wave-glut/lib/mini/test/test.cpp.
static void updatePosition | ( | glut::Viewer & | view | ) | [static] |
Definition at line 247 of file wave-glut/lib/mini/test/test.cpp.
static void onDisplay | ( | void | ) | [static] |
Definition at line 311 of file wave-glut/lib/mini/test/test.cpp.
static void onIdle | ( | void | ) | [static] |
Definition at line 404 of file wave-glut/lib/mini/test/test.cpp.
static void onKeys | ( | byte_t | key, | |
int | x, | |||
int | y | |||
) | [static] |
Definition at line 415 of file wave-glut/lib/mini/test/test.cpp.
static void onSpecial | ( | int | key, | |
int | x, | |||
int | y | |||
) | [static] |
Definition at line 450 of file wave-glut/lib/mini/test/test.cpp.
static void onReshape | ( | int | w, | |
int | h | |||
) | [static] |
Definition at line 463 of file wave-glut/lib/mini/test/test.cpp.
int main | ( | int | argc, | |
const char * | argv[] | |||
) |
Definition at line 485 of file wave-glut/lib/mini/test/test.cpp.
const int s_defaultWidth = 800 [static] |
Definition at line 29 of file wave-glut/lib/mini/test/test.cpp.
const int s_defaultHeight = 600 [static] |
Definition at line 30 of file wave-glut/lib/mini/test/test.cpp.
int s_screenWidth = s_defaultWidth [static] |
Definition at line 32 of file wave-glut/lib/mini/test/test.cpp.
int s_screenHeight = s_defaultHeight [static] |
Definition at line 33 of file wave-glut/lib/mini/test/test.cpp.
int s_winid = -1 [static] |
Definition at line 38 of file wave-glut/lib/mini/test/test.cpp.
int s_wmode = 0 [static] |
Definition at line 39 of file wave-glut/lib/mini/test/test.cpp.
const int s_delay = 100 [static] |
Definition at line 42 of file wave-glut/lib/mini/test/test.cpp.
int s_ignoreInput = s_delay [static] |
Definition at line 43 of file wave-glut/lib/mini/test/test.cpp.
minitile* s_tileset = NULL [static] |
Definition at line 46 of file wave-glut/lib/mini/test/test.cpp.
minicache* s_cache = NULL [static] |
Definition at line 47 of file wave-glut/lib/mini/test/test.cpp.
int s_updates = 5 [static] |
Definition at line 48 of file wave-glut/lib/mini/test/test.cpp.
point3d_t s_lightPosition(0.0, 0.0, 0.0) [static] |
point3d_t s_lightVelocity(0.0, 0.0,-0.01) [static] |
int s_retval = 0 [static] |
Definition at line 54 of file wave-glut/lib/mini/test/test.cpp.