\brief The QOpenGLFramebufferObjectFormat class specifies the format of an OpenGL
framebuffer object.
- \since 4.6
+ \since 5.0
\ingroup painting-3D
}
/*!
- \since 4.8
-
Enables mipmapping if \a enabled is true; otherwise disables it.
Mipmapping is disabled by default.
}
/*!
- \since 4.8
-
Returns true if mipmapping is enabled.
\sa setMipmap()
/*!
\class QOpenGLFramebufferObject
\brief The QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object.
- \since 4.2
+ \since 5.0
\ingroup painting-3D
/*!
\enum QOpenGLFramebufferObject::Attachment
- \since 4.3
This enum type is used to configure the depth and stencil buffers
attached to the framebuffer object when it is created.
}
/*!
- \since 4.5
-
Returns true if the framebuffer object is currently bound to a context,
otherwise false is returned.
*/
/*!
\fn bool QOpenGLFramebufferObject::hasOpenGLFramebufferBlit()
- \since 4.6
-
Returns true if the OpenGL \c{GL_EXT_framebuffer_blit} extension
is present on this system; otherwise returns false.
}
/*!
- \since 4.6
-
Blits from the \a sourceRect rectangle in the \a source framebuffer
object to the \a targetRect rectangle in the \a target framebuffer object.
/*!
\class QOpenGLShader
\brief The QOpenGLShader class allows OpenGL shaders to be compiled.
- \since 4.6
+ \since 5.0
\ingroup painting-3D
This class supports shaders written in the OpenGL Shading Language (GLSL)
\sa setAttributeValue(), setUniformValue(), enableAttributeArray()
\sa disableAttributeArray(), setAttributeBuffer()
- \since 4.7
*/
void QOpenGLShaderProgram::setAttributeArray
(int location, GLenum type, const void *values, int tupleSize, int stride)
\sa setAttributeValue(), setUniformValue(), enableAttributeArray()
\sa disableAttributeArray(), setAttributeBuffer()
- \since 4.7
*/
void QOpenGLShaderProgram::setAttributeArray
(const char *name, GLenum type, const void *values, int tupleSize, int stride)
setAttributeValue() for \a location will be used.
\sa setAttributeArray()
- \since 4.7
*/
void QOpenGLShaderProgram::setAttributeBuffer
(int location, GLenum type, int offset, int tupleSize, int stride)
setAttributeValue() for \a name will be used.
\sa setAttributeArray()
- \since 4.7
*/
void QOpenGLShaderProgram::setAttributeBuffer
(const char *name, GLenum type, int offset, int tupleSize, int stride)
in column-major order.
\sa setAttributeValue()
- \since 4.7
*/
void QOpenGLShaderProgram::setUniformValue(int location, const GLfloat value[2][2])
{
in column-major order.
\sa setAttributeValue()
- \since 4.7
*/
void QOpenGLShaderProgram::setUniformValue(int location, const GLfloat value[3][3])
{
in column-major order.
\sa setAttributeValue()
- \since 4.7
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const GLfloat value[2][2])
{
in column-major order.
\sa setAttributeValue()
- \since 4.7
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const GLfloat value[3][3])
{
Returns the hardware limit for how many vertices a geometry shader
can output.
- \since 4.7
-
\sa setGeometryOutputVertexCount()
*/
int QOpenGLShaderProgram::maxGeometryOutputVertices() const
Sets the maximum number of vertices the current geometry shader
program will produce, if active, to \a count.
- \since 4.7
-
This parameter takes effect the next time the program is linked.
*/
void QOpenGLShaderProgram::setGeometryOutputVertexCount(int count)
Returns the maximum number of vertices the current geometry shader
program will produce, if active.
- \since 4.7
-
This parameter takes effect the ntext time the program is linked.
*/
int QOpenGLShaderProgram::geometryOutputVertexCount() const
Returns the geometry shader input type, if active.
This parameter takes effect the next time the program is linked.
-
- \since 4.7
*/
GLenum QOpenGLShaderProgram::geometryInputType() const
\a outputType.
This parameter takes effect the next time the program is linked.
-
- \since 4.7
*/
void QOpenGLShaderProgram::setGeometryOutputType(GLenum outputType)
{
Returns the geometry shader output type, if active.
This parameter takes effect the next time the program is linked.
-
- \since 4.7
*/
GLenum QOpenGLShaderProgram::geometryOutputType() const
{
The \a context is used to resolve the GLSL extensions.
If \a context is null, then QOpenGLContext::currentContext() is used.
-
- \since 4.7
*/
bool QOpenGLShader::hasOpenGLShaders(ShaderType type, QOpenGLContext *context)
{