chgl.h
来自「此文档是用vistual studio 2005 开发的用来描述3D-tree 」· C头文件 代码 · 共 31 行
H
31 行
/*
* Copyleft (c) 2008 Lauming chen, SooChow University.
*
*
*
*/
#ifndef _CHGL__INCLUDED_
#define _CHGL__INCLUDED_
#define PI 3.1415926
class ChGL {
public :
ChGL();
~ChGL();
/* Image type - contains height, width and data */
typedef struct ChImage {
unsigned long sizeX;
unsigned long sizeY;
unsigned char *data;
} ChImage;
void static drawCylinder( float baseRadius, float topRadius, float length, int slices );
bool static loadImage( char* filename, ChImage* image );
bool static delBlackColor( ChImage* image );
void static loadTexture( char* imageName, unsigned int* tex, bool delBlack );
private :
};
#endif // _CHGL__INCLUDED_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?