- All Implemented Interfaces:
QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
public class QOpenGLShaderProgram extends QObject
Allows OpenGL shader programs to be linked and used
Java wrapper for Qt class QOpenGLShaderProgram
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QDeclarativeConstructor, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
-
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QOpenGLShaderProgram()
Overloaded constructor forQOpenGLShaderProgram(io.qt.core.QObject)
withparent = null
.QOpenGLShaderProgram(QObject parent)
protected
QOpenGLShaderProgram(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QOpenGLShaderProgram(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description boolean
addCacheableShaderFromSourceCode(QOpenGLShader.ShaderType type, QByteArray source)
boolean
addCacheableShaderFromSourceCode(QOpenGLShader.ShaderType type, String source)
boolean
addCacheableShaderFromSourceFile(QOpenGLShader.ShaderType type, String fileName)
boolean
addShader(QOpenGLShader shader)
boolean
addShaderFromSourceCode(QOpenGLShader.ShaderType type, QByteArray source)
boolean
addShaderFromSourceCode(QOpenGLShader.ShaderType type, String source)
boolean
addShaderFromSourceFile(QOpenGLShader.ShaderType type, String fileName)
int
attributeLocation(QByteArray name)
int
attributeLocation(String name)
boolean
bind()
void
bindAttributeLocation(QByteArray name, int location)
void
bindAttributeLocation(String name, int location)
boolean
create()
QVector<Float>
defaultInnerTessellationLevels()
QVector<Float>
defaultOuterTessellationLevels()
void
disableAttributeArray(int location)
void
disableAttributeArray(String name)
void
enableAttributeArray(int location)
void
enableAttributeArray(String name)
static boolean
hasOpenGLShaderPrograms()
Overloaded function forhasOpenGLShaderPrograms(io.qt.gui.QOpenGLContext)
withcontext = null
.static boolean
hasOpenGLShaderPrograms(QOpenGLContext context)
boolean
isLinked()
boolean
link()
String
log()
int
maxGeometryOutputVertices()
int
patchVertexCount()
int
programId()
void
release()
void
removeAllShaders()
void
removeShader(QOpenGLShader shader)
void
setAttributeArray(int location, int type, Buffer values, int tupleSize)
Overloaded function forsetAttributeArray(int, int, java.nio.Buffer, int, int)
withstride = 0
.void
setAttributeArray(int location, int type, Buffer values, int tupleSize, int stride)
void
setAttributeArray(int location, QVector2D[] values)
void
setAttributeArray(int location, QVector3D[] values)
void
setAttributeArray(int location, QVector4D[] values)
void
setAttributeArray(int location, FloatBuffer values, int tupleSize)
Overloaded function forsetAttributeArray(int, java.nio.FloatBuffer, int, int)
withstride = 0
.void
setAttributeArray(int location, FloatBuffer values, int tupleSize, int stride)
void
setAttributeArray(String name, int type, Buffer values, int tupleSize)
Overloaded function forsetAttributeArray(java.lang.String, int, java.nio.Buffer, int, int)
withstride = 0
.void
setAttributeArray(String name, int type, Buffer values, int tupleSize, int stride)
void
setAttributeArray(String name, QVector2D[] values)
void
setAttributeArray(String name, QVector3D[] values)
void
setAttributeArray(String name, QVector4D[] values)
void
setAttributeArray(String name, FloatBuffer values, int tupleSize)
Overloaded function forsetAttributeArray(java.lang.String, java.nio.FloatBuffer, int, int)
withstride = 0
.void
setAttributeArray(String name, FloatBuffer values, int tupleSize, int stride)
void
setAttributeBuffer(int location, int type, int offset, int tupleSize)
Overloaded function forsetAttributeBuffer(int, int, int, int, int)
withstride = 0
.void
setAttributeBuffer(int location, int type, int offset, int tupleSize, int stride)
void
setAttributeBuffer(String name, int type, int offset, int tupleSize)
Overloaded function forsetAttributeBuffer(java.lang.String, int, int, int, int)
withstride = 0
.void
setAttributeBuffer(String name, int type, int offset, int tupleSize, int stride)
void
setAttributeValue(int location, float value)
void
setAttributeValue(int location, float x, float y)
void
setAttributeValue(int location, float x, float y, float z)
void
setAttributeValue(int location, float x, float y, float z, float w)
void
setAttributeValue(int location, QColor value)
void
setAttributeValue(int location, QVector2D value)
void
setAttributeValue(int location, QVector3D value)
void
setAttributeValue(int location, QVector4D value)
void
setAttributeValue(int location, FloatBuffer values, int columns, int rows)
void
setAttributeValue(String name, float value)
void
setAttributeValue(String name, float x, float y)
void
setAttributeValue(String name, float x, float y, float z)
void
setAttributeValue(String name, float x, float y, float z, float w)
void
setAttributeValue(String name, QColor value)
void
setAttributeValue(String name, QVector2D value)
void
setAttributeValue(String name, QVector3D value)
void
setAttributeValue(String name, QVector4D value)
void
setAttributeValue(String name, FloatBuffer values, int columns, int rows)
void
setDefaultInnerTessellationLevels(Collection<Float> levels)
void
setDefaultOuterTessellationLevels(Collection<Float> levels)
void
setPatchVertexCount(int count)
void
setUniformValue(int location, float value)
void
setUniformValue(int location, float x, float y)
void
setUniformValue(int location, float x, float y, float z)
void
setUniformValue(int location, float x, float y, float z, float w)
void
setUniformValue(int location, int value)
void
setUniformValue(int location, QPoint point)
void
setUniformValue(int location, QPointF point)
void
setUniformValue(int location, QSize size)
void
setUniformValue(int location, QSizeF size)
void
setUniformValue(int location, QColor color)
void
setUniformValue(int location, QMatrix2x2 value)
void
setUniformValue(int location, QMatrix2x3 value)
void
setUniformValue(int location, QMatrix2x4 value)
void
setUniformValue(int location, QMatrix3x2 value)
void
setUniformValue(int location, QMatrix3x3 value)
void
setUniformValue(int location, QMatrix3x4 value)
void
setUniformValue(int location, QMatrix4x2 value)
void
setUniformValue(int location, QMatrix4x3 value)
void
setUniformValue(int location, QMatrix4x4 value)
void
setUniformValue(int location, QTransform value)
void
setUniformValue(int location, QVector2D value)
void
setUniformValue(int location, QVector3D value)
void
setUniformValue(int location, QVector4D value)
void
setUniformValue(String name, float value)
void
setUniformValue(String name, float x, float y)
void
setUniformValue(String name, float x, float y, float z)
void
setUniformValue(String name, float x, float y, float z, float w)
void
setUniformValue(String name, int value)
void
setUniformValue(String name, QPoint point)
void
setUniformValue(String name, QPointF point)
void
setUniformValue(String name, QSize size)
void
setUniformValue(String name, QSizeF size)
void
setUniformValue(String name, QColor color)
void
setUniformValue(String name, QMatrix2x2 value)
void
setUniformValue(String name, QMatrix2x3 value)
void
setUniformValue(String name, QMatrix2x4 value)
void
setUniformValue(String name, QMatrix3x2 value)
void
setUniformValue(String name, QMatrix3x3 value)
void
setUniformValue(String name, QMatrix3x4 value)
void
setUniformValue(String name, QMatrix4x2 value)
void
setUniformValue(String name, QMatrix4x3 value)
void
setUniformValue(String name, QMatrix4x4 value)
void
setUniformValue(String name, QTransform value)
void
setUniformValue(String name, QVector2D value)
void
setUniformValue(String name, QVector3D value)
void
setUniformValue(String name, QVector4D value)
void
setUniformValueArray(int location, QMatrix2x2[] values)
void
setUniformValueArray(int location, QMatrix2x3[] values)
void
setUniformValueArray(int location, QMatrix2x4[] values)
void
setUniformValueArray(int location, QMatrix3x2[] values)
void
setUniformValueArray(int location, QMatrix3x3[] values)
void
setUniformValueArray(int location, QMatrix3x4[] values)
void
setUniformValueArray(int location, QMatrix4x2[] values)
void
setUniformValueArray(int location, QMatrix4x3[] values)
void
setUniformValueArray(int location, QMatrix4x4[] values)
void
setUniformValueArray(int location, QVector2D[] values)
void
setUniformValueArray(int location, QVector3D[] values)
void
setUniformValueArray(int location, QVector4D[] values)
void
setUniformValueArray(int location, FloatBuffer values, int count, int tupleSize)
void
setUniformValueArray(int location, IntBuffer values, int count)
void
setUniformValueArray(String name, QMatrix2x2[] values)
void
setUniformValueArray(String name, QMatrix2x3[] values)
void
setUniformValueArray(String name, QMatrix2x4[] values)
void
setUniformValueArray(String name, QMatrix3x2[] values)
void
setUniformValueArray(String name, QMatrix3x3[] values)
void
setUniformValueArray(String name, QMatrix3x4[] values)
void
setUniformValueArray(String name, QMatrix4x2[] values)
void
setUniformValueArray(String name, QMatrix4x3[] values)
void
setUniformValueArray(String name, QMatrix4x4[] values)
void
setUniformValueArray(String name, QVector2D[] values)
void
setUniformValueArray(String name, QVector3D[] values)
void
setUniformValueArray(String name, QVector4D[] values)
void
setUniformValueArray(String name, FloatBuffer values, int count, int tupleSize)
void
setUniformValueArray(String name, IntBuffer values, int count)
QList<QOpenGLShader>
shaders()
int
uniformLocation(QByteArray name)
int
uniformLocation(String name)
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, event, eventFilter, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, toString, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QOpenGLShaderProgram
public QOpenGLShaderProgram()Overloaded constructor for
QOpenGLShaderProgram(io.qt.core.QObject)
withparent = null
. -
QOpenGLShaderProgram
-
QOpenGLShaderProgram
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QOpenGLShaderProgram
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
addCacheableShaderFromSourceCode
@QtUninvokable public final boolean addCacheableShaderFromSourceCode(QOpenGLShader.ShaderType type, QByteArray source) -
addCacheableShaderFromSourceCode
@QtUninvokable public final boolean addCacheableShaderFromSourceCode(QOpenGLShader.ShaderType type, String source) -
addCacheableShaderFromSourceFile
@QtUninvokable public final boolean addCacheableShaderFromSourceFile(QOpenGLShader.ShaderType type, String fileName) -
addShader
-
addShaderFromSourceCode
@QtUninvokable public final boolean addShaderFromSourceCode(QOpenGLShader.ShaderType type, QByteArray source) -
addShaderFromSourceCode
@QtUninvokable public final boolean addShaderFromSourceCode(QOpenGLShader.ShaderType type, String source) -
addShaderFromSourceFile
@QtUninvokable public final boolean addShaderFromSourceFile(QOpenGLShader.ShaderType type, String fileName) -
attributeLocation
-
attributeLocation
-
bind
-
bindAttributeLocation
-
bindAttributeLocation
-
create
-
defaultInnerTessellationLevels
-
defaultOuterTessellationLevels
-
disableAttributeArray
-
disableAttributeArray
-
enableAttributeArray
-
enableAttributeArray
-
isLinked
-
log
-
maxGeometryOutputVertices
-
patchVertexCount
-
programId
-
release
-
removeAllShaders
-
removeShader
-
setAttributeArray
@QtUninvokable public final void setAttributeArray(String name, int type, Buffer values, int tupleSize)Overloaded function for
setAttributeArray(java.lang.String, int, java.nio.Buffer, int, int)
withstride = 0
. -
setAttributeArray
@QtUninvokable public final void setAttributeArray(String name, int type, Buffer values, int tupleSize, int stride) -
setAttributeArray
Overloaded function for
setAttributeArray(java.lang.String, java.nio.FloatBuffer, int, int)
withstride = 0
. -
setAttributeArray
@QtUninvokable public final void setAttributeArray(String name, FloatBuffer values, int tupleSize, int stride) -
setAttributeArray
-
setAttributeArray
-
setAttributeArray
-
setAttributeArray
@QtUninvokable public final void setAttributeArray(int location, int type, Buffer values, int tupleSize)Overloaded function for
setAttributeArray(int, int, java.nio.Buffer, int, int)
withstride = 0
. -
setAttributeArray
@QtUninvokable public final void setAttributeArray(int location, int type, Buffer values, int tupleSize, int stride) -
setAttributeArray
@QtUninvokable public final void setAttributeArray(int location, FloatBuffer values, int tupleSize)Overloaded function for
setAttributeArray(int, java.nio.FloatBuffer, int, int)
withstride = 0
. -
setAttributeArray
@QtUninvokable public final void setAttributeArray(int location, FloatBuffer values, int tupleSize, int stride) -
setAttributeArray
-
setAttributeArray
-
setAttributeArray
-
setAttributeBuffer
@QtUninvokable public final void setAttributeBuffer(String name, int type, int offset, int tupleSize)Overloaded function for
setAttributeBuffer(java.lang.String, int, int, int, int)
withstride = 0
. -
setAttributeBuffer
@QtUninvokable public final void setAttributeBuffer(String name, int type, int offset, int tupleSize, int stride) -
setAttributeBuffer
@QtUninvokable public final void setAttributeBuffer(int location, int type, int offset, int tupleSize)Overloaded function for
setAttributeBuffer(int, int, int, int, int)
withstride = 0
. -
setAttributeBuffer
@QtUninvokable public final void setAttributeBuffer(int location, int type, int offset, int tupleSize, int stride) -
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setAttributeValue
@QtUninvokable public final void setAttributeValue(String name, float x, float y, float z, float w) -
setAttributeValue
@QtUninvokable public final void setAttributeValue(String name, FloatBuffer values, int columns, int rows) -
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setAttributeValue
@QtUninvokable public final void setAttributeValue(int location, float x, float y, float z, float w) -
setAttributeValue
@QtUninvokable public final void setAttributeValue(int location, FloatBuffer values, int columns, int rows) -
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setAttributeValue
-
setDefaultInnerTessellationLevels
-
setDefaultOuterTessellationLevels
-
setPatchVertexCount
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValue
-
setUniformValueArray
@QtUninvokable public final void setUniformValueArray(String name, FloatBuffer values, int count, int tupleSize) -
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
@QtUninvokable public final void setUniformValueArray(int location, FloatBuffer values, int count, int tupleSize) -
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
setUniformValueArray
-
shaders
-
uniformLocation
-
uniformLocation
-
link
-
hasOpenGLShaderPrograms
public static boolean hasOpenGLShaderPrograms()Overloaded function for
hasOpenGLShaderPrograms(io.qt.gui.QOpenGLContext)
withcontext = null
. -
hasOpenGLShaderPrograms
-