⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 runningmodel.h

📁 一個簡單的游戲設計...好好玩的
💻 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 + -