landscape.h.svn-base
来自「自己做的小游戏」· SVN-BASE 代码 · 共 35 行
SVN-BASE
35 行
#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 + =
减小字号Ctrl + -
显示快捷键?