4#ifndef QOPENGLSHADERPROGRAM_H
5#define QOPENGLSHADERPROGRAM_H
7#include <QtCore/qobject.h>
8#include <QtOpenGL/qtopenglglobal.h>
10#include <QtGui/qopengl.h>
11#include <QtGui/qvector2d.h>
12#include <QtGui/qvector3d.h>
13#include <QtGui/qvector4d.h>
14#include <QtGui/qmatrix4x4.h>
32 TessellationControl = 0x0008,
33 TessellationEvaluation = 0x0010,
41 QOpenGLShader::ShaderType shaderType()
const;
43 bool compileSourceCode(
const char *
source);
50 bool isCompiled()
const;
80 bool addShaderFromSourceCode(QOpenGLShader::ShaderType
type,
const char *
source);
82 bool addShaderFromSourceCode(QOpenGLShader::ShaderType
type,
const QString&
source);
85 bool addCacheableShaderFromSourceCode(QOpenGLShader::ShaderType
type,
const char *
source);
87 bool addCacheableShaderFromSourceCode(QOpenGLShader::ShaderType
type,
const QString &
source);
88 bool addCacheableShaderFromSourceFile(QOpenGLShader::ShaderType
type,
const QString &
fileName);
90 void removeAllShaders();
93 bool isLinked()
const;
103 int maxGeometryOutputVertices()
const;
105 void setPatchVertexCount(
int count);
106 int patchVertexCount()
const;
114 void bindAttributeLocation(
const char *
name,
int location);
118 int attributeLocation(
const char *
name)
const;
140 void setAttributeValue(
const char *
name,
const GLfloat *
values,
int columns,
int rows);
142 void setAttributeArray
144 void setAttributeArray
146 void setAttributeArray
148 void setAttributeArray
150 void setAttributeArray
152 void setAttributeArray
154 void setAttributeArray
156 void setAttributeArray
158 void setAttributeArray
160 void setAttributeArray
163 void setAttributeBuffer
165 void setAttributeBuffer
168 void enableAttributeArray(
int location);
169 void enableAttributeArray(
const char *
name);
170 void disableAttributeArray(
int location);
171 void disableAttributeArray(
const char *
name);
173 int uniformLocation(
const char *
name)
const;
215 void setUniformValue(
const char *
name,
const QPoint& point);
216 void setUniformValue(
const char *
name,
const QPointF& point);
268 void shaderDestroyed();
The QColor class provides colors based on RGB, HSV or CMYK values.
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
The QOpenGLShaderProgram class allows OpenGL shader programs to be linked and used.
The QOpenGLShader class allows OpenGL shaders to be compiled.
ShaderTypeBit
This enum specifies the type of QOpenGLShader that is being created.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVector2D class represents a vector or vertex in 2D space.
The QVector3D class represents a vector or vertex in 3D space.
The QVector4D class represents a vector or vertex in 4D space.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLenum GLsizei GLsizei GLint * values
[15]
typedef GLint(GL_APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC)(GLuint program
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
typedef GLfloat(GL_APIENTRYP PFNGLGETPATHLENGTHNVPROC)(GLuint path
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
const void GLsizei GLsizei stride
typedef GLenum(GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC)(void)
GLenum GLuint GLintptr offset
GLsizei GLsizei GLchar * source
GLsizei GLsizei GLuint * shaders
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
socketLayer bind(QHostAddress::Any, 4000)
\qmltype MapCircle \instantiates QDeclarativeCircleMapItem \inqmlmodule QtLocation
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent