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