leaf.h

来自「此文档是用vistual studio 2005 开发的用来描述3D-tree 」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef _3D_MyTree_LEAF_
#define _3D_MyTree_LEAF_

class Leaf {
public :
	Leaf( float size, float twist, float expand, char* bmpPath );
	~Leaf();

	void setSize( float size );
	void setTwist( float twist );
	void setExpand( float expand );
	void setVisible( bool visible );
	void setShakeble( bool shakeble );
	void setTexture( char* bmpPath );

	int getSize();
	float getTwist();
	float getExpand();
	bool isVisible();
	bool isShakeble();
	unsigned int getTexture();

	void draw();
private :
	float size;
	float twist;  // The angle with coordinate X.
	float expand;  // The angle with coordinate Y.
	bool visible;
	bool shakeble;
	unsigned int texture;  // The texture of leaf.
};

#endif  // _3D_MyTree_LEAF_

⌨️ 快捷键说明

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