|
|
GLfloat xrot; // X Rotation ( NEW )
GLfloat yrot; // Y Rotation ( NEW )
GLfloat zrot; // Z Rotation ( NEW )
GLuint texture[1]; // Storage For One Texture ( NEW )
最近学了一点OpenGL,觉得没有D3D容易学,比如上面例子中的GLfloat和GLuint就很不明白,为什么不直接定义成 float xrot ? 难道OpenGL还自己“开炉灶”而不用c++的float吗?
还有,GLuint是什么类型,啃青各位好心的高手帮忙。
不要笑我菜,我最近刚刚学了一点OpenGL,原因是OpenGL的例子比D3D丰富,呵呵! |
|