Changeset 846 for trunk/src/opengl/qglshaderprogram.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/qglshaderprogram.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 55 55 QT_MODULE(OpenGL) 56 56 57 #if !defined(QT_OPENGL_ES_1 _CL) && !defined(QT_OPENGL_ES_1)57 #if !defined(QT_OPENGL_ES_1) 58 58 59 59 class QGLShaderProgram; … … 67 67 { 68 68 Vertex = 0x0001, 69 Fragment = 0x0002 69 Fragment = 0x0002, 70 Geometry = 0x0004 70 71 }; 71 72 Q_DECLARE_FLAGS(ShaderType, ShaderTypeBit) … … 89 90 GLuint shaderId() const; 90 91 92 static bool hasOpenGLShaders(ShaderType type, const QGLContext *context = 0); 93 91 94 private: 92 95 friend class QGLShaderProgram; … … 100 103 101 104 class QGLShaderProgramPrivate; 105 106 #ifndef GL_EXT_geometry_shader4 107 # define GL_LINES_ADJACENCY_EXT 0xA 108 # define GL_LINE_STRIP_ADJACENCY_EXT 0xB 109 # define GL_TRIANGLES_ADJACENCY_EXT 0xC 110 # define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0xD 111 #endif 112 102 113 103 114 class Q_OPENGL_EXPORT QGLShaderProgram : public QObject … … 128 139 129 140 GLuint programId() const; 141 142 int maxGeometryOutputVertices() const; 143 144 void setGeometryOutputVertexCount(int count); 145 int geometryOutputVertexCount() const; 146 147 void setGeometryInputType(GLenum inputType); 148 GLenum geometryInputType() const; 149 150 void setGeometryOutputType(GLenum outputType); 151 GLenum geometryOutputType() const; 130 152 131 153 void bindAttributeLocation(const char *name, int location); … … 166 188 (int location, const QVector4D *values, int stride = 0); 167 189 void setAttributeArray 190 (int location, GLenum type, const void *values, int tupleSize, int stride = 0); 191 void setAttributeArray 168 192 (const char *name, const GLfloat *values, int tupleSize, int stride = 0); 169 193 void setAttributeArray … … 173 197 void setAttributeArray 174 198 (const char *name, const QVector4D *values, int stride = 0); 199 void setAttributeArray 200 (const char *name, GLenum type, const void *values, int tupleSize, int stride = 0); 201 202 void setAttributeBuffer 203 (int location, GLenum type, int offset, int tupleSize, int stride = 0); 204 void setAttributeBuffer 205 (const char *name, GLenum type, int offset, int tupleSize, int stride = 0); 206 207 #ifdef Q_MAC_COMPAT_GL_FUNCTIONS 208 void setAttributeArray 209 (int location, QMacCompatGLenum type, const void *values, int tupleSize, int stride = 0); 210 void setAttributeArray 211 (const char *name, QMacCompatGLenum type, const void *values, int tupleSize, int stride = 0); 212 void setAttributeBuffer 213 (int location, QMacCompatGLenum type, int offset, int tupleSize, int stride = 0); 214 void setAttributeBuffer 215 (const char *name, QMacCompatGLenum type, int offset, int tupleSize, int stride = 0); 216 #endif 175 217 176 218 void enableAttributeArray(int location); … … 217 259 void setUniformValue(int location, const QMatrix4x3& value); 218 260 void setUniformValue(int location, const QMatrix4x4& value); 261 void setUniformValue(int location, const GLfloat value[2][2]); 262 void setUniformValue(int location, const GLfloat value[3][3]); 219 263 void setUniformValue(int location, const GLfloat value[4][4]); 220 264 void setUniformValue(int location, const QTransform& value); … … 243 287 void setUniformValue(const char *name, const QMatrix4x3& value); 244 288 void setUniformValue(const char *name, const QMatrix4x4& value); 289 void setUniformValue(const char *name, const GLfloat value[2][2]); 290 void setUniformValue(const char *name, const GLfloat value[3][3]); 245 291 void setUniformValue(const char *name, const GLfloat value[4][4]); 246 292 void setUniformValue(const char *name, const QTransform& value);
Note:
See TracChangeset
for help on using the changeset viewer.