Typedefs | Functions | Variables

wave-glut/lib/terrain/test/test.cpp File Reference

#include <fstream>
#include <math.h>
#include "common/wave_ex.h"
#include "glut/glut.h"
#include "glut/glut_2d.h"
#include "glut-font/glut-font.h"
#include "glut/glut-state.h"
#include "perf/perf.h"
#include "terrain/terrain.h"
#include "util/file.h"
Include dependency graph for wave-glut/lib/terrain/test/test.cpp:

Go to the source code of this file.

Typedefs

typedef short int height_t

Functions

static void onExit (void)
static void setTerrain (const char *hfield_file)
static void setLight (float t)
static void onDisplay (glut::RenderQueue *rq)
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 const float s_twoPi = 2.0 * M_PI
static int s_winid = -1
static const int s_delay = 100
static int s_wmode = 0
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
static smart_ptr
< hfield::Heightfield
s_hfield
static smart_ptr
< glut::Renderable
s_terrain

Typedef Documentation

typedef short int height_t

Definition at line 32 of file wave-glut/lib/terrain/test/test.cpp.


Function Documentation

static void onExit ( void   )  [static]

Definition at line 61 of file wave-glut/lib/terrain/test/test.cpp.

static void setTerrain ( const char *  hfield_file  )  [static]

Definition at line 81 of file wave-glut/lib/terrain/test/test.cpp.

static void setLight ( float  t  )  [static]

Definition at line 110 of file wave-glut/lib/terrain/test/test.cpp.

static void onDisplay ( glut::RenderQueue rq  )  [static]

Definition at line 137 of file wave-glut/lib/terrain/test/test.cpp.

int main ( int  argc,
const char *  argv[] 
)

Definition at line 332 of file wave-glut/lib/terrain/test/test.cpp.


Variable Documentation

const int s_defaultWidth = 800 [static]

Definition at line 24 of file wave-glut/lib/terrain/test/test.cpp.

const int s_defaultHeight = 600 [static]

Definition at line 25 of file wave-glut/lib/terrain/test/test.cpp.

int s_screenWidth = s_defaultWidth [static]

Definition at line 27 of file wave-glut/lib/terrain/test/test.cpp.

Definition at line 28 of file wave-glut/lib/terrain/test/test.cpp.

const float s_twoPi = 2.0 * M_PI [static]

Definition at line 30 of file wave-glut/lib/terrain/test/test.cpp.

int s_winid = -1 [static]

Definition at line 34 of file wave-glut/lib/terrain/test/test.cpp.

const int s_delay = 100 [static]

Definition at line 38 of file wave-glut/lib/terrain/test/test.cpp.

int s_wmode = 0 [static]

Definition at line 40 of file wave-glut/lib/terrain/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 46 of file wave-glut/lib/terrain/test/test.cpp.

Definition at line 49 of file wave-glut/lib/terrain/test/test.cpp.

Definition at line 50 of file wave-glut/lib/terrain/test/test.cpp.