/************************http://blog.csdn.net/sunboyiris*************************************/  /*  创建或替换一个显示列表 */ WINGDIAPI void APIENTRY glNewList (GLuint list, GLenum mode);   /*  设定当前顶点法向 */ WINGDIAPI void APIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz); WINGDIAPI void APIENTRY glNormal3bv (const GLbyte *v); WINGDIAPI void APIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz); WINGDIAPI void APIENTRY glNormal3dv (const GLdouble *v); WINGDIAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); WINGDIAPI void APIENTRY glNormal3fv (const GLfloat *v); WINGDIAPI void APIENTRY glNormal3i (GLint nx, GLint ny, GLint nz); WINGDIAPI void APIENTRY glNormal3iv (const GLint *v); WINGDIAPI void APIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz); WINGDIAPI void APIENTRY glNormal3sv (const GLshort *v);   WINGDIAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); //设定一个法向数组      WINGDIAPI void APIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); WINGDIAPI void APIENTRY glPassThrough (GLfloat token); WINGDIAPI void APIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values); WINGDIAPI void APIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values); WINGDIAPI void APIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values); WINGDIAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param); WINGDIAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); WINGDIAPI void APIENTRY glPixelTransferf (GLenum pname, GLfloat param); WINGDIAPI void APIENTRY glPixelTransferi (GLenum pname, GLint param); WINGDIAPI void APIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor); WINGDIAPI void APIENTRY glPointSize (GLfloat size); WINGDIAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode); WINGDIAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); WINGDIAPI void APIENTRY glPolygonStipple (const GLubyte *mask);     /*  属性堆栈的压入和弹出操作  */ WINGDIAPI void APIENTRY glPopAttrib (void); WINGDIAPI void APIENTRY glPushAttrib (GLbitfield mask);  /* 在客户属性堆栈存储和恢复客户状态值  */ WINGDIAPI void APIENTRY glPopClientAttrib (void); WINGDIAPI void APIENTRY glPushClientAttrib (GLbitfield mask);  /*  矩阵堆栈的压入和弹出操作   */ WINGDIAPI void APIENTRY glPopMatrix (void); WINGDIAPI void APIENTRY glPushMatrix (void);  /*   名字堆栈的压入和弹出操作   */ WINGDIAPI void APIENTRY glPopName (void); WINGDIAPI void APIENTRY glPushName (GLuint name);       /*   定义像素操作的光栅位置  */ WINGDIAPI void APIENTRY glRasterPos2d (GLdouble x, GLdouble y); WINGDIAPI void APIENTRY glRasterPos2dv (const GLdouble *v); WINGDIAPI void APIENTRY glRasterPos2f (GLfloat x, GLfloat y); WINGDIAPI void APIENTRY glRasterPos2fv (const GLfloat *v); WINGDIAPI void APIENTRY glRasterPos2i (GLint x, GLint y); WINGDIAPI void APIENTRY glRasterPos2iv (const GLint *v); WINGDIAPI void APIENTRY glRasterPos2s (GLshort x, GLshort y); WINGDIAPI void APIENTRY glRasterPos2sv (const GLshort *v); WINGDIAPI void APIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z); WINGDIAPI void APIENTRY glRasterPos3dv (const GLdouble *v); WINGDIAPI void APIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); WINGDIAPI void APIENTRY glRasterPos3fv (const GLfloat *v); WINGDIAPI void APIENTRY glRasterPos3i (GLint x, GLint y, GLint z); WINGDIAPI void APIENTRY glRasterPos3iv (const GLint *v); WINGDIAPI void APIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z); WINGDIAPI void APIENTRY glRasterPos3sv (const GLshort *v); WINGDIAPI void APIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); WINGDIAPI void APIENTRY glRasterPos4dv (const GLdouble *v); WINGDIAPI void APIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); WINGDIAPI void APIENTRY glRasterPos4fv (const GLfloat *v); WINGDIAPI void APIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w); WINGDIAPI void APIENTRY glRasterPos4iv (const GLint *v); WINGDIAPI void APIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w); WINGDIAPI void APIENTRY glRasterPos4sv (const GLshort *v);      WINGDIAPI void APIENTRY glReadBuffer (GLenum mode); // 为像素选择一个源色彩缓冲区 WINGDIAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); //从帧缓冲区读取一组数据   /*    绘制一个三角形    */ WINGDIAPI void APIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); WINGDIAPI void APIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2); WINGDIAPI void APIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); WINGDIAPI void APIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2); WINGDIAPI void APIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2); WINGDIAPI void APIENTRY glRectiv (const GLint *v1, const GLint *v2); WINGDIAPI void APIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2); WINGDIAPI void APIENTRY glRectsv (const GLshort *v1, const GLshort *v2);   WINGDIAPI GLint APIENTRY glRenderMode (GLenum mode); //定义光栅模式   /*  将旋转矩阵与当前矩阵相乘    */ WINGDIAPI void APIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); WINGDIAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);  /*  将一般的比例矩阵与当前矩阵相乘 */ WINGDIAPI void APIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z); WINGDIAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);    WINGDIAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); //定义裁减框 WINGDIAPI void APIENTRY glSelectBuffer (GLsizei size, GLuint *buffer); //为选择模式值建立一个缓冲区 WINGDIAPI void APIENTRY glShadeModel (GLenum mode); //选择平直或平滑着色 WINGDIAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); //为模板测试设置功能和参照值  WINGDIAPI void APIENTRY glStencilMask (GLuint mask); //控制在模板面写单独的位 WINGDIAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); //设置激活模式测试          /*  设置当前纹理坐标 */ WINGDIAPI void APIENTRY glTexCoord1d (GLdouble s); WINGDIAPI void APIENTRY glTexCoord1dv (const GLdouble *v); WINGDIAPI void APIENTRY glTexCoord1f (GLfloat s); WINGDIAPI void APIENTRY glTexCoord1fv (const GLfloat *v); WINGDIAPI void APIENTRY glTexCoord1i (GLint s); WINGDIAPI void APIENTRY glTexCoord1iv (const GLint *v); WINGDIAPI void APIENTRY glTexCoord1s (GLshort s); WINGDIAPI void APIENTRY glTexCoord1sv (const GLshort *v); WINGDIAPI void APIENTRY glTexCoord2d (GLdouble s, GLdouble t); WINGDIAPI void APIENTRY glTexCoord2dv (const GLdouble *v); WINGDIAPI void APIENTRY glTexCoord2f (GLfloat s, GLfloat t); WINGDIAPI void APIENTRY glTexCoord2fv (const GLfloat *v); WINGDIAPI void APIENTRY glTexCoord2i (GLint s, GLint t); WINGDIAPI void APIENTRY glTexCoord2iv (const GLint *v); WINGDIAPI void APIENTRY glTexCoord2s (GLshort s, GLshort t); WINGDIAPI void APIENTRY glTexCoord2sv (const GLshort *v); WINGDIAPI void APIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r); WINGDIAPI void APIENTRY glTexCoord3dv (const GLdouble *v); WINGDIAPI void APIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r); WINGDIAPI void APIENTRY glTexCoord3fv (const GLfloat *v); WINGDIAPI void APIENTRY glTexCoord3i (GLint s, GLint t, GLint r); WINGDIAPI void APIENTRY glTexCoord3iv (const GLint *v); WINGDIAPI void APIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r); WINGDIAPI void APIENTRY glTexCoord3sv (const GLshort *v); WINGDIAPI void APIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q); WINGDIAPI void APIENTRY glTexCoord4dv (const GLdouble *v); WINGDIAPI void APIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q); WINGDIAPI void APIENTRY glTexCoord4fv (const GLfloat *v); WINGDIAPI void APIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q); WINGDIAPI void APIENTRY glTexCoord4iv (const GLint *v); WINGDIAPI void APIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q); WINGDIAPI void APIENTRY glTexCoord4sv (const GLshort *v);          WINGDIAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); //定义一个纹理坐标数组   /*  设定纹理坐标环境参数  */ WINGDIAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); WINGDIAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); WINGDIAPI void APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); WINGDIAPI void APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);   /*  控制纹理坐标的生成   */ WINGDIAPI void APIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param); WINGDIAPI void APIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params); WINGDIAPI void APIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param); WINGDIAPI void APIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params); WINGDIAPI void APIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param); WINGDIAPI void APIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);   WINGDIAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); //定义一个一维的纹理图象 WINGDIAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); // 定义一个二维的纹理图   /*  设置纹理参数  */ WINGDIAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); WINGDIAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); WINGDIAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); WINGDIAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);    WINGDIAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); //定义一个存在的一维纹理图像的一部分,但不能定义新的纹理 WINGDIAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); //定义一个存在的二维纹理图像的一部分,但不能定义新的纹理   /*将变换矩阵与当前矩阵相乘*/ WINGDIAPI void APIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z); WINGDIAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);       //定义一个顶点  WINGDIAPI void APIENTRY glVertex2d (GLdouble x, GLdouble y); WINGDIAPI void APIENTRY glVertex2dv (const GLdouble *v); WINGDIAPI void APIENTRY glVertex2f (GLfloat x, GLfloat y); WINGDIAPI void APIENTRY glVertex2fv (const GLfloat *v); WINGDIAPI void APIENTRY glVertex2i (GLint x, GLint y); WINGDIAPI void APIENTRY glVertex2iv (const GLint *v); WINGDIAPI void APIENTRY glVertex2s (GLshort x, GLshort y); WINGDIAPI void APIENTRY glVertex2sv (const GLshort *v); WINGDIAPI void APIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z); WINGDIAPI void APIENTRY glVertex3dv (const GLdouble *v); WINGDIAPI void APIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z); WINGDIAPI void APIENTRY glVertex3fv (const GLfloat *v); WINGDIAPI void APIENTRY glVertex3i (GLint x, GLint y, GLint z); WINGDIAPI void APIENTRY glVertex3iv (const GLint *v); WINGDIAPI void APIENTRY glVertex3s (GLshort x, GLshort y, GLshort z); WINGDIAPI void APIENTRY glVertex3sv (const GLshort *v); WINGDIAPI void APIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); WINGDIAPI void APIENTRY glVertex4dv (const GLdouble *v); WINGDIAPI void APIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); WINGDIAPI void APIENTRY glVertex4fv (const GLfloat *v); WINGDIAPI void APIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w); WINGDIAPI void APIENTRY glVertex4iv (const GLint *v); WINGDIAPI void APIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w); WINGDIAPI void APIENTRY glVertex4sv (const GLshort *v);      WINGDIAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); //设定一个顶点数据数组 WINGDIAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); //设置视窗