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

📄 plant.h

📁 3D游戏展示程序
💻 H
字号:
//--------------------------------------------------
//  Desc: Plant
//  Date: 2007.2.25 /update
//  Author: artsylee
//
//  Copyright (C) 2007 artsylee
//
//--------------------------------------------------

#ifndef _PLANT_
#define _PLANT_

#include "Tree.h"

struct Grid_Offset
{
	unsigned char xbias; 
	unsigned char zbias; 
};

#define PLANT_MAP_SIZE	64

class CPlant
{
public:
	CPlant();
	~CPlant();

	bool	LoadPlant(char *pFile);
	void	Render(void);

private:
	unsigned char m_PlantData[PLANT_MAP_SIZE][PLANT_MAP_SIZE];
	Grid_Offset	  m_PlantOffset[PLANT_MAP_SIZE][PLANT_MAP_SIZE];

	CTree		  m_Tree;
	HeightmapVertex m_Vertex[10000];
	DWORD			m_VertexIndex;
};

#endif // _PLANT_

⌨️ 快捷键说明

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