📄 leaf.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -