Typedefs | Functions | Variables

terrain/test/test.cpp File Reference

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

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 void setTerrain (IN const char *hfield_file)
static void setLight (IN float t)
static void onDisplay (IN glut::RenderQueue *rq)
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 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 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 terrain/test/test.cpp.


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]

Definition at line 61 of file terrain/test/test.cpp.

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

Definition at line 81 of file terrain/test/test.cpp.

static void setLight ( IN float  t  )  [static]

Definition at line 110 of file terrain/test/test.cpp.

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

Definition at line 137 of file terrain/test/test.cpp.

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

Definition at line 332 of file terrain/test/test.cpp.


Variable Documentation

const int s_defaultWidth = 800 [static]

Definition at line 24 of file terrain/test/test.cpp.

const int s_defaultHeight = 600 [static]

Definition at line 25 of file terrain/test/test.cpp.

int s_screenWidth = s_defaultWidth [static]

Definition at line 27 of file terrain/test/test.cpp.

Definition at line 28 of file terrain/test/test.cpp.

const float s_twoPi = 2.0 * M_PI [static]

Definition at line 30 of file terrain/test/test.cpp.

int s_winid = -1 [static]

Definition at line 34 of file terrain/test/test.cpp.

const int s_delay = 100 [static]

Definition at line 38 of file terrain/test/test.cpp.

int s_wmode = 0 [static]

Definition at line 40 of file terrain/test/test.cpp.

int s_retval = 0 [static]

Definition at line 46 of file terrain/test/test.cpp.

smart_ptr<hfield::Heightfield> s_hfield [static]

Definition at line 49 of file terrain/test/test.cpp.

smart_ptr<glut::Renderable> s_terrain [static]

Definition at line 50 of file terrain/test/test.cpp.