-
Notifications
You must be signed in to change notification settings - Fork 0
/
engine.h
35 lines (27 loc) · 960 Bytes
/
engine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _engine_h_
#define _engine_h_
extern int nFrames;
extern int nFPS;
extern DWORD dwLastFPS;
int initOpenGL(game_data*);
int drawGLScene(int life, game_data *data);
void draw_ground(int dimx, int dimy, int tessx, int tessy, float height);
//void draw_Skybox(float x, float y, float z, float width, float height, float length);
void draw_Character(float x, float y, float z);
int maketex(const char* tfile,GLint xSize,GLint ySize);
void initLists();
int genWalls();
int loadGLTextures(void);
void redisplay();
void destroyGLWindow(void);
BOOL createGLWindow(game_data *data, TCHAR* szWndTitle, int nWidth, int nHeight, int iBits, bool bFullscreen);
void resizeGLScene(int nWidth, int nHeight);
void camForward(float fSpeed);
void camStrafe(float fSpeed);
void camElevate(float fSpeed);
void camRotate(float fRoll, float fPitch, float fYaw);
void camAdjustSpeed(float fSpeedMult);
void camReset();
void animateschelet();
void jumpschelet();
#endif