|
Classes |
struct | _CGLRGBTRIPLE |
Defines |
#define | MAX_EFFECTS 10 |
#define | SCREEN_TEXTURE_SIZE 512 |
#define | SCREEN_BPP 3 |
Typedefs |
typedef _CGLRGBTRIPLE | CGLRGBTRIPLE |
Functions |
LRESULT CALLBACK | WndProc (HWND, UINT, WPARAM, LPARAM) |
BOOL CALLBACK | DialogProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
void | koch (VECTOR a, VECTOR b, int n) |
void | makeScreenshot () |
GLvoid | ReSizeGLScene (GLsizei width, GLsizei height) |
GLvoid | setGLCamera () |
GLvoid | setGLLighting () |
int | InitGL (GLvoid) |
| OpenGL setup.
|
void | drawFPS (int fps) |
int | DrawGLScene (GLvoid) |
GLvoid | KillGLWindow (GLvoid) |
BOOL | CreateGLWindow (char *title, int width, int height, int bits, bool fullscreenflag) |
void | drawLoadScreen (int progress) |
void | initEffects () |
void | removeEffects () |
int WINAPI | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) |
Variables |
float | aspectRatio = 1.0f |
int | screenWidth = 640 |
int | screenHeight = 480 |
GLfloat | pi = 3.1415926535897932 |
GLfloat | radian = pi / 180 |
GLfloat | epsilon = 0.05 |
int | GL_LIGHT [8] = {GL_LIGHT0, GL_LIGHT1, GL_LIGHT2, GL_LIGHT3, GL_LIGHT4, GL_LIGHT5, GL_LIGHT6, GL_LIGHT7} |
int | currentLight = 0 |
int | numLights = 1 |
LIGHT * | light = new LIGHT[numLights + 1] |
int | currentCamera = 0 |
int | numCameras = 4 |
GLfloat | step = 30.0 |
CAMERA * | cam = new CAMERA[numCameras + 1] |
HDC | hDC = NULL |
HGLRC | hRC = NULL |
HWND | hWnd = NULL |
HINSTANCE | hInstance |
bool | keys [256] |
bool | active = TRUE |
LONGLONG | frequency |
LONGLONG | currentTime |
LONGLONG | lastTime |
LONGLONG | startTime |
double | timeElapsed = 0 |
double | timeOverall = 0 |
double | timeScale |
double | timeSecond = 0 |
bool | highPerformance |
double | demoRuntime = 0 |
double | frames |
double | currentFPS |
double | lastFrameTime |
GLint | fontFPS |
double | timeElapsedFPS = 0.0 |
CEffect * | effects [MAX_EFFECTS] |
float | effectTiming [MAX_EFFECTS][2] |
bool | effectFirstCall [MAX_EFFECTS] |
bool | fullscreen = false |
bool | showFPS = false |
bool | loop = false |
int | resolutionIndex = 0 |
int | resolutionCount = 4 |
char | resolutions [4][20] = { "640x480", "800x600", "1024x768", "1600x1200" } |
int | resX [4] = { 640, 800, 1024, 1600 } |
int | resY [4] = { 480, 600, 768, 1200 } |
int | colorDepth = 32 |
BYTE * | m_pBits |
GLint | fontLoad |