打算花几天时间学习完Opengl函数,要不然以后做东西速度很慢啊
先知道有这么回事就可以了
清屏
1.void glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
缓冲区清理
2.glClear( GLbitfield mask)
3.平移,旋转,缩放
void glRotated( GLdouble angle, GLdouble x, GLdouble y, GLdouble z );
void glRotatef( GLfloat angle, GLfloat x, GLfloat y, GLfloat z );
void glScaled( GLdouble x, GLdouble y, GLdouble z );
void glScalef( GLfloat x, GLfloat y, GLfloat z );
void glTranslated( GLdouble x, GLdouble y, GLdouble z );
void glTranslatef( GLfloat x, GLfloat y, GLfloat z );
4.强制执行opengl命令
glFinish(void);
5.保护原来的矩阵在一系列变换操作后不被破坏(改变)
void glPushMatrix( void );
void glPopMatrix( void );
6.视见
void glViewport( GLint x, GLint y, GLsizei width, GLsizei height );
7.平行视景体
void glOrtho( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val );
8.矩阵单位化
void glLoadIdentity( void );
9.光照 Ligiht0-7
GLAPI void APIENTRY glLightf( GLenum light, GLenum pname, GLfloat param );
GLAPI void APIENTRY glLighti( GLenum light, GLenum pname, GLint param );
GLAPI void APIENTRY glLightfv( GLenum light, GLenum pname, const GLfloat *params );
GLAPI void APIENTRY glLightiv( GLenum light, GLenum pname, const GLint *params );
10.点大小 和 线宽
GLAPI void APIENTRY glPointSize( GLfloat size );
GLAPI void APIENTRY glLineWidth( GLfloat width );
11.获取opengl错误
glEnum glGetError( void );
12.纹理生产和删除
GLAPI void APIENTRY glGenTextures( GLsizei n, GLuint *textures );
GLAPI void APIENTRY glDeleteTextures( GLsizei n, const GLuint *textures);
13.