runningmodel.h

来自「一個簡單的游戲設計...好好玩的」· C头文件 代码 · 共 58 行

H
58
字号
#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 + =
减小字号Ctrl + -
显示快捷键?