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

📄 landscape.h.svn-base

📁 自己做的小游戏
💻 SVN-BASE
字号:
#pragma once
#include "TriPool.h"
#include "Patch.h"

class LandScape
{
public:
	LandScape(void);
public:
	~LandScape(void);
	//data for store the Height Field array
	static unsigned char *m_HeightMap;

	//size of the map
	static int m_MapSize;

protected:
	//vectors for each point
	Vertex	*m_Vectors;

	//TriTreeNode Pool
	TriPool* m_TriPool;

	//all terrain patches
	Patch* m_Patches;

public:
	virtual void ComputeNormal(int x,int y, Vertex *out);
	virtual void Init(unsigned char *hMap,int mapSize );
	virtual void Reset();
	virtual void Tessellate();
	virtual int Render();
	virtual float GetY(float xp,float zp);
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -