Page 456 OpenGL Super Bible! TreesSelectBitmap, MountainsDownBitmap, MountainsUpBitmap, (Space web hosting)
Page 456 OpenGL Super Bible! TreesSelectBitmap, MountainsDownBitmap, MountainsUpBitmap, MountainsSelectBitmap; HWND TerrainWindow; /* Terrain dialog */ int TerrainCurrent = IDC_WATER; int TerrainType[TERRAIN_SIZE][TERRAIN_SIZE]; GLfloat TerrainHeight[TERRAIN_SIZE][TERRAIN_SIZE]; GLfloat TerrainNormal[TERRAIN_SIZE][TERRAIN_SIZE][3]; double MoveTime; /* Last update time */ GLboolean Moving = GL_FALSE, /* GL_TRUE if flying */ Drawing = GL_FALSE; /* GL_TRUE if drawing */ POINT CenterMouseXY; /* Initial mouse pos */ GLfloat Position[3] = { 0.0, TERRAIN_SCALE, 0.0 }; /* Viewer position */ GLfloat Heading = 0.0, /* Viewer heading */ Pitch = 0.0, /* Viewer pitch */ Roll = 0.0; /* Viewer roll */ /* * Local functions */ void DisplayErrorMessage(char *, ); void MakePalette(int); LRESULT CALLBACK SceneProc(HWND, UINT, WPARAM, LPARAM); UINT CALLBACK TerrainDlgProc(HWND, UINT, WPARAM, LPARAM); void InitializeTerrain(void); void LoadAllTextures(void); void LoadAllBitmaps(HINSTANCE); void DrawTerrain(int, int); void FlyTerrain(int, int); void RepaintWindow(RECT *); void SaveBitmapFile(void); void PrintBitmap(void); double GetClock(void); /* * ‘WinMain() - Main entry */ int APIENTRY WinMain(HINSTANCE hInst, /* I - Current process instance */ HINSTANCE hPrevInstance, /* I - Parent process instance */ LPSTR lpCmdLine, /* I - Command-line arguments */ int nCmdShow) /* I - Show window at startup? */ { MSG msg; /* Window UI event */
We recommend high quality webhost to host and run your jsp application: christian web host services.