📄 landscape.h.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 + -