#include <windows.h>#include "glew.h"#include <gl\gl.h>#include <gl\glu.h>#include "glut.h"#include <stdio.h>#include <io.h>#include <math.h>#include "tga.h"#include <time.h>#include "TextData.h"#include "CDataClass.h"Go to the source code of this file.
Defines | |
| #define | WINDOW_WIDTH 1440 | 
| #define | WINDOW_HEIGHT 900 | 
| #define | ZNEAR 10.0f | 
| #define | ZFAR 10000.0f | 
| #define | HEIGHT_OF_FONT -15 | 
Functions | |
| LRESULT CALLBACK | WndProc (HWND, UINT, WPARAM, LPARAM) | 
| void | SetMaxHeight (float fData) | 
| void | SetPositiveToShader (bool bFlag) | 
| void | SetGlobalVarable () | 
| int | InitGL (GLvoid) | 
| char * | SourceRead (char *filename) | 
| GLvoid | BuildFont (GLvoid) | 
| GLvoid | glPrint (const char *fmt,...) | 
| GLvoid | KillFont (GLvoid) | 
| GLvoid | DrawText () | 
| bool | open_serial_port () | 
| void | close_serial_port () | 
| void | set_serial_data () | 
| void | loadconfigdata () | 
Variables | |
| HDC | hDC = NULL | 
| HGLRC | hRC = NULL | 
| HWND | hWnd = NULL | 
| HINSTANCE | hInstance | 
| bool | keys [256] | 
| bool | active = TRUE | 
| bool | fullscreen = TRUE | 
| int | g_test | 
| float | fTempData = 0.0f | 
| int | g_x | 
| int | g_y | 
| float | g_f | 
| bool | g_bIsRButtonDown | 
| bool | g_bIsLButtonDown | 
| float | g_fCameraPosX | 
| float | g_fCameraPosY | 
| float | g_fCameraPosZ | 
| int | g_nPrevMousePosX | 
| int | g_nPrevMousePosY | 
| int | g_nWidth | 
| int | g_nHeight | 
| float | g_fMouseSensitivity | 
| float | g_fCameraDistance | 
| unsigned int | g_uiTexture | 
| GLuint | base | 
| GLhandleARB | h_vertex | 
| GLhandleARB | h_frag | 
| GLhandleARB | h_program | 
| CDataClass | g_data | 
| CTextList | g_textList | 
| CTextData | g_fpsText | 
| CTextData | g_frameText | 
| CTextData | g_LogoText | 
| LARGE_INTEGER | g_Frequency | 
| LARGE_INTEGER | g_prevTick | 
| LARGE_INTEGER | g_curTick | 
| double | g_dTimeDuration | 
| #define HEIGHT_OF_FONT -15 | 
| #define WINDOW_HEIGHT 900 | 
| #define WINDOW_WIDTH 1440 | 
| #define ZFAR 10000.0f | 
| #define ZNEAR 10.0f | 
| GLvoid BuildFont | ( | GLvoid | ) | 
| void close_serial_port | ( | ) | 
| GLvoid DrawText | ( | ) | 
| GLvoid glPrint | ( | const char * | fmt, | 
| ... | |||
| ) | 
| int InitGL | ( | GLvoid | ) | 
| GLvoid KillFont | ( | GLvoid | ) | 
| void loadconfigdata | ( | ) | 
| bool open_serial_port | ( | ) | 
| void set_serial_data | ( | ) | 
| void SetGlobalVarable | ( | ) | 
| void SetMaxHeight | ( | float | fData ) | 
| void SetPositiveToShader | ( | bool | bFlag ) | 
| char* SourceRead | ( | char * | filename ) | 
| LRESULT CALLBACK WndProc | ( | HWND | , | 
| UINT | , | ||
| WPARAM | , | ||
| LPARAM | |||
| ) | 
| bool active = TRUE | 
| GLuint base | 
| float fTempData = 0.0f | 
| bool fullscreen = TRUE | 
| bool g_bIsLButtonDown | 
| bool g_bIsRButtonDown | 
| LARGE_INTEGER g_curTick | 
| double g_dTimeDuration | 
| float g_f | 
| float g_fCameraDistance | 
| float g_fCameraPosX | 
| float g_fCameraPosY | 
| float g_fCameraPosZ | 
| float g_fMouseSensitivity | 
| LARGE_INTEGER g_Frequency | 
| int g_nHeight | 
| int g_nPrevMousePosX | 
| int g_nPrevMousePosY | 
| int g_nWidth | 
| LARGE_INTEGER g_prevTick | 
| int g_test | 
| unsigned int g_uiTexture | 
| int g_x | 
| int g_y | 
| GLhandleARB h_frag | 
| GLhandleARB h_program | 
| GLhandleARB h_vertex | 
| HDC hDC = NULL | 
| HINSTANCE hInstance | 
| HGLRC hRC = NULL | 
| HWND hWnd = NULL | 
| bool keys[256] | 
 1.7.2