/************************http://blog.csdn.net/sunboyiris*************************************/ WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value); //操作累加缓冲区 WINGDIAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref); //允许设置alpha检测功能 WINGDIAPI GLboolean APIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences); //决定特定的纹理对象是否常驻在纹理内存中 WINGDIAPI void APIENTRY glArrayElement (GLint i); //定义一个被用于顶点渲染的数组成分 WINGDIAPI void APIENTRY glBegin (GLenum mode); //定义一个或一组原始的顶点 WINGDIAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); //允许建立一个绑定到目标纹理的有名称的纹理 WINGDIAPI void APIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); //绘制一个位图 WINGDIAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); //特殊的像素算法 WINGDIAPI void APIENTRY glCallList (GLuint list); //执行一个显示列表 WINGDIAPI void APIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists); //执行一列显示列表 WINGDIAPI void APIENTRY glClear (GLbitfield mask); // 用当前值清除缓冲区 WINGDIAPI void APIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); //为累加缓冲区指定用于清除的值 WINGDIAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); //为色彩缓冲区指定用于清除的值 WINGDIAPI void APIENTRY glClearDepth (GLclampd depth); //为深度缓冲区指定用于清除的值 WINGDIAPI void APIENTRY glClearIndex (GLfloat c); //为索引缓冲区指定用于清除的值 WINGDIAPI void APIENTRY glClearStencil (GLint s); //为模板缓冲区指定用于清除的值 WINGDIAPI void APIENTRY glClipPlane (GLenum plane, const GLdouble *equation); //定义被裁剪的一个平面几何体 /* 设置当前色彩 */ WINGDIAPI void APIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue); WINGDIAPI void APIENTRY glColor3bv (const GLbyte *v); WINGDIAPI void APIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue); WINGDIAPI void APIENTRY glColor3dv (const GLdouble *v); WINGDIAPI void APIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue); WINGDIAPI void APIENTRY glColor3fv (const GLfloat *v); WINGDIAPI void APIENTRY glColor3i (GLint red, GLint green, GLint blue); WINGDIAPI void APIENTRY glColor3iv (const GLint *v); WINGDIAPI void APIENTRY glColor3s (GLshort red, GLshort green, GLshort blue); WINGDIAPI void APIENTRY glColor3sv (const GLshort *v); WINGDIAPI void APIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue); WINGDIAPI void APIENTRY glColor3ubv (const GLubyte *v); WINGDIAPI void APIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue); WINGDIAPI void APIENTRY glColor3uiv (const GLuint *v); WINGDIAPI void APIENTRY glColor3us (GLushort red, GLushort green, GLushort blue); WINGDIAPI void APIENTRY glColor3usv (const GLushort *v); WINGDIAPI void APIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); WINGDIAPI void APIENTRY glColor4bv (const GLbyte *v); WINGDIAPI void APIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); WINGDIAPI void APIENTRY glColor4dv (const GLdouble *v); WINGDIAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); WINGDIAPI void APIENTRY glColor4fv (const GLfloat *v); WINGDIAPI void APIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha); WINGDIAPI void APIENTRY glColor4iv (const GLint *v); WINGDIAPI void APIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha); WINGDIAPI void APIENTRY glColor4sv (const GLshort *v); WINGDIAPI void APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); WINGDIAPI void APIENTRY glColor4ubv (const GLubyte *v); WINGDIAPI void APIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha); WINGDIAPI void APIENTRY glColor4uiv (const GLuint *v); WINGDIAPI void APIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha); WINGDIAPI void APIENTRY glColor4usv (const GLushort *v); WINGDIAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); //允许或不允许写色彩组件帧缓冲区 WINGDIAPI void APIENTRY glColorMaterial (GLenum face, GLenum mode); // 使一个材质色彩指向当前的色彩 WINGDIAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); //定义一列色彩 WINGDIAPI void APIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); // 拷贝帧缓冲区里的像素 WINGDIAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); //将像素从帧缓冲区拷贝到一个单空间纹理图象中 WINGDIAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); //将像素从帧缓冲区拷贝到一个双空间纹理图象中 WINGDIAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); //从帧缓冲区拷贝一个单空间纹理的子图象 WINGDIAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); //从帧缓冲区拷贝一个双空间纹理的子图象 WINGDIAPI void APIENTRY glCullFace (GLenum mode); //定义前面或后面是否能被精选 WINGDIAPI void APIENTRY glDeleteLists (GLuint list, GLsizei range); //删除相邻一组显示列表 WINGDIAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); //删除命名的纹理 WINGDIAPI void APIENTRY glDepthFunc (GLenum func); //定义用于深度缓冲区对照的数据 WINGDIAPI void APIENTRY glDepthMask (GLboolean flag); //允许或不允许写入深度缓冲区 WINGDIAPI void APIENTRY glDepthRange (GLclampd zNear, GLclampd zFar); //定义z值从标准的设备坐标映射到窗口坐标
OpenGL(8)GL库API
原创王孟贤 ©著作权
文章分类
©著作权归作者所有:来自51CTO博客作者王孟贤的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:OpenGL(9)GL库API
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
openGL API 之glDrawBuffer(GL_NONE);
指定在当前帧缓冲区的哪个颜色缓冲区进行绘制,并不影响深度、模板缓冲区。
openGL API glDrawBuffer 缓存 默认值 官网 -
opengl库中gl glu glut glaux的区别
GL GLU GLUT的关系OpenGL中的gl库是核
头文件 跨平台 #include