Web hosting rating - OpenGL Super Bible! Page 455 Now here is

OpenGL Super Bible! Page 455 Now here is Listing 12-5, the complete terrain viewing program, TEXSCENE.C. Listing 12-5 TEXSCENE.C: The terrain viewing program #include ‘texture.h #include ‘texscene.h #include #include
#ifndef M_PI # define M_PI (double)3.14159265358979323846 #endif /* !M_PI */ /* * Constants */ #define TERRAIN_SIZE 21 #define TERRAIN_EDGE ((TERRAIN_SIZE - 1) / 2) #define TERRAIN_SCALE (500.0 / TERRAIN_EDGE) #define GRASS_HEIGHT 0.0 #define WATER_HEIGHT 0.0 #define TREES_HEIGHT 0.0 #define ROCKS_HEIGHT 0.5 #define MOUNTAINS_HEIGHT 1.0 /* * Globals */ HWND SceneWindow; /* Scene window */ HPALETTE ScenePalette; /* Color palette (if necessary) */ HDC SceneDC; /* Drawing context */ HGLRC SceneRC; /* OpenGL rendering context */ GLuint SkyTexture, /* Sky texture image */ GrassTexture, /* Grass */ RocksTexture, /* Rock */ WaterTexture, /* Water */ TreesTexture, /* Trees */ MountainsTexture; /* Mountains */ HBITMAP GrassDownBitmap, /* Grass button down image */ GrassUpBitmap, /* Grass button up image */ GrassSelectBitmap, /* Grass button selected image */ RocksDownBitmap, /* */ RocksUpBitmap, RocksSelectBitmap, WaterDownBitmap, WaterUpBitmap, WaterSelectBitmap, TreesDownBitmap, TreesUpBitmap,
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply