⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qglextensions_p.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.**** This file is part of the QtOpenGL module of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://trolltech.com/products/qt/licenses/licensing/opensource/**** If you are unsure which license is appropriate for your use, please** review the following information:** http://trolltech.com/products/qt/licenses/licensing/licensingoverview** or contact the sales department at sales@trolltech.com.**** In addition, as a special exception, Trolltech gives you certain** additional rights. These rights are described in the Trolltech GPL** Exception version 1.0, which can be found at** http://www.trolltech.com/products/qt/gplexception/ and in the file** GPL_EXCEPTION.txt in this package.**** In addition, as a special exception, Trolltech, as the sole copyright** holder for Qt Designer, grants users of the Qt/Eclipse Integration** plug-in the right for the Qt/Eclipse Integration to link to** functionality provided by Qt Designer and its related libraries.**** Trolltech reserves all rights not expressly granted herein.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#ifndef QGL_EXTENSIONS_P_H#define QGL_EXTENSIONS_P_H////  W A R N I N G//  -------------//// This file is not part of the Qt API.  It exists for the convenience// of the Qt OpenGL classes.  This header file may change from// version to version without notice, or even be removed.//// We mean it.//// extension prototypes#ifndef Q_WS_MAC# ifndef APIENTRYP#   ifdef APIENTRY#     define APIENTRYP APIENTRY *#   else#     define APIENTRY#     define APIENTRYP *#   endif# endif#else# define APIENTRY# define APIENTRYP *#endif// ARB_fragment_programtypedef void (APIENTRY *_glProgramStringARB) (GLenum, GLenum, GLsizei, const GLvoid *);typedef void (APIENTRY *_glBindProgramARB) (GLenum, GLuint);typedef void (APIENTRY *_glDeleteProgramsARB) (GLsizei, const GLuint *);typedef void (APIENTRY *_glGenProgramsARB) (GLsizei, GLuint *);typedef void (APIENTRY *_glProgramLocalParameter4fvARB) (GLenum, GLuint, const GLfloat *);// GLSLtypedef GLuint (APIENTRY *_glCreateShader) (GLenum);typedef void (APIENTRY *_glShaderSource) (GLuint, GLsizei, const char **, const GLint *);typedef void (APIENTRY *_glCompileShader) (GLuint);typedef void (APIENTRY *_glDeleteShader) (GLuint);typedef GLuint (APIENTRY *_glCreateProgram) ();typedef void (APIENTRY *_glAttachShader) (GLuint, GLuint);typedef void (APIENTRY *_glDetachShader) (GLuint, GLuint);typedef void (APIENTRY *_glLinkProgram) (GLuint);typedef void (APIENTRY *_glUseProgram) (GLuint);typedef void (APIENTRY *_glDeleteProgram) (GLuint);typedef void (APIENTRY *_glGetShaderInfoLog) (GLuint, GLsizei, GLsizei *, char *);typedef void (APIENTRY *_glGetProgramiv) (GLuint, GLenum, GLint *);typedef GLuint (APIENTRY *_glGetUniformLocation) (GLuint, const char*);typedef void (APIENTRY *_glUniform4fv) (GLint, GLsizei, GLfloat *);typedef void (APIENTRY *_glUniform3fv) (GLint, GLsizei, GLfloat *);typedef void (APIENTRY *_glUniform2fv) (GLint, GLsizei, GLfloat *);typedef void (APIENTRY *_glUniform1fv) (GLint, GLsizei, GLfloat *);typedef void (APIENTRY *_glUniform1i) (GLint, GLint);typedef void (APIENTRY *_glActiveStencilFaceEXT) (GLenum );typedef void (APIENTRY *_glMultiTexCoord4f) (GLenum, GLfloat, GLfloat, GLfloat, GLfloat);typedef void (APIENTRY *_glActiveTexture) (GLenum);// EXT_GL_framebuffer_objecttypedef GLboolean (APIENTRY *_glIsRenderbufferEXT) (GLuint renderbuffer);typedef void (APIENTRY *_glBindRenderbufferEXT) (GLenum target, GLuint renderbuffer);typedef void (APIENTRY *_glDeleteRenderbuffersEXT) (GLsizei n, const GLuint *renderbuffers);typedef void (APIENTRY *_glGenRenderbuffersEXT) (GLsizei n, GLuint *renderbuffers);typedef void (APIENTRY *_glRenderbufferStorageEXT) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);typedef void (APIENTRY *_glGetRenderbufferParameterivEXT) (GLenum target, GLenum pname, GLint *params);typedef GLboolean (APIENTRY *_glIsFramebufferEXT) (GLuint framebuffer);typedef void (APIENTRY *_glBindFramebufferEXT) (GLenum target, GLuint framebuffer);typedef void (APIENTRY *_glDeleteFramebuffersEXT) (GLsizei n, const GLuint *framebuffers);typedef void (APIENTRY *_glGenFramebuffersEXT) (GLsizei n, GLuint *framebuffers);typedef GLenum (APIENTRY *_glCheckFramebufferStatusEXT) (GLenum target);typedef void (APIENTRY *_glFramebufferTexture1DEXT) (GLenum target, GLenum attachment, GLenum textarget,                                                           GLuint texture, GLint level);typedef void (APIENTRY *_glFramebufferTexture2DEXT) (GLenum target, GLenum attachment, GLenum textarget,                                                           GLuint texture, GLint level);typedef void (APIENTRY *_glFramebufferTexture3DEXT) (GLenum target, GLenum attachment, GLenum textarget,                                                           GLuint texture, GLint level, GLint zoffset);typedef void (APIENTRY *_glFramebufferRenderbufferEXT) (GLenum target, GLenum attachment, GLenum renderbuffertarget,                                                              GLuint renderbuffer);typedef void (APIENTRY *_glGetFramebufferAttachmentParameterivEXT) (GLenum target, GLenum attachment, GLenum pname,                                                                          GLint *params);typedef void (APIENTRY *_glGenerateMipmapEXT) (GLenum target);struct QGLExtensionFuncs{    QGLExtensionFuncs() {        qt_glProgramStringARB = 0;        qt_glBindProgramARB = 0;        qt_glDeleteProgramsARB = 0;        qt_glGenProgramsARB = 0;        qt_glProgramLocalParameter4fvARB = 0;        qt_glCreateShader = 0;        qt_glShaderSource = 0;        qt_glCompileShader = 0;        qt_glDeleteShader = 0;        qt_glCreateProgram = 0;        qt_glAttachShader = 0;        qt_glDetachShader = 0;        qt_glLinkProgram = 0;        qt_glUseProgram = 0;        qt_glDeleteProgram = 0;        qt_glGetShaderInfoLog = 0;        qt_glGetProgramiv = 0;        qt_glGetUniformLocation = 0;        qt_glUniform4fv = 0;        qt_glUniform3fv = 0;        qt_glUniform2fv = 0;        qt_glUniform1fv = 0;        qt_glUniform1i = 0;        qt_glActiveStencilFaceEXT = 0;        qt_glMultiTexCoord4f = 0;        qt_glActiveTexture = 0;        qt_glIsRenderbufferEXT = 0;        qt_glBindRenderbufferEXT = 0;        qt_glDeleteRenderbuffersEXT = 0;        qt_glGenRenderbuffersEXT = 0;        qt_glRenderbufferStorageEXT = 0;        qt_glGetRenderbufferParameterivEXT = 0;        qt_glIsFramebufferEXT = 0;        qt_glBindFramebufferEXT = 0;        qt_glDeleteFramebuffersEXT = 0;        qt_glGenFramebuffersEXT = 0;        qt_glCheckFramebufferStatusEXT = 0;        qt_glFramebufferTexture1DEXT = 0;        qt_glFramebufferTexture2DEXT = 0;        qt_glFramebufferTexture3DEXT = 0;        qt_glFramebufferRenderbufferEXT = 0;        qt_glGetFramebufferAttachmentParameterivEXT = 0;        qt_glGenerateMipmapEXT = 0;    }    _glProgramStringARB qt_glProgramStringARB;    _glBindProgramARB qt_glBindProgramARB;    _glDeleteProgramsARB qt_glDeleteProgramsARB;    _glGenProgramsARB qt_glGenProgramsARB;    _glProgramLocalParameter4fvARB qt_glProgramLocalParameter4fvARB;    // GLSL definitions    _glCreateShader qt_glCreateShader;    _glShaderSource qt_glShaderSource;    _glCompileShader qt_glCompileShader;    _glDeleteShader qt_glDeleteShader;    _glCreateProgram qt_glCreateProgram;    _glAttachShader qt_glAttachShader;    _glDetachShader qt_glDetachShader;    _glLinkProgram qt_glLinkProgram;    _glUseProgram qt_glUseProgram;    _glDeleteProgram qt_glDeleteProgram;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -