📄 runningmodel.h
字号:
#pragma once
#include "game.h"
#include "bmpLoader.h"
#include "terrain.h"
#include "sky.h"
#include "car.h"
#include "tree.h"
class RUNNINGMODEL :
public GAME
{
public:
RUNNINGMODEL(void);
~RUNNINGMODEL(void);
protected:
Terrain G;
Sky S;
struct CarStruct {
Car CAR;
float vLocation[3];
float vUp[3];
float vForward[3];
float Speed;
} C;
struct TreeStruct {
Tree TREE;
int *x;
int *z;
int *Rot;
int NumOfTree;
float TreeSize;
} T;
GLfloat xRot;
GLfloat yRot;
GLfloat xTran;
GLfloat yTran;
GLfloat zTran;
M_EVENT beforeMEvent;
K_EVENT beforeKEvent;
GLuint FieldList;
void GetMatrix(CarStruct *pC , GLfloat *pMatrix);
void Mouse(M_EVENT mEvent);
void KeyBoard(K_EVENT kEvent);
void Display();
void Reshape(GLsizei Width , GLsizei Height);
void GameTimer(int n);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -