java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.quick.QSGMaterialShader
- All Implemented Interfaces:
QtObjectInterface
- Direct Known Subclasses:
QSGMaterialRhiShader
,QSGSimpleMaterialShader
public abstract class QSGMaterialShader extends QtObject
Represents an OpenGL shader program in the renderer
Java wrapper for Qt class QSGMaterialShader
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QSGMaterialShader.RenderState
QSGMaterialShader::RenderState encapsulates the current rendering state during a call to QSGMaterialShader::updateState() -
Constructor Summary
Constructors Modifier Constructor Description QSGMaterialShader()
protected
QSGMaterialShader(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description void
activate()
abstract String[]
attributeNames()
protected void
compile()
void
deactivate()
protected String
fragmentShader()
protected void
initialize()
QOpenGLShaderProgram
program()
protected void
setShaderSourceFile(QOpenGLShader.ShaderType type, String sourceFile)
protected void
setShaderSourceFiles(QOpenGLShader.ShaderType type, Collection<String> sourceFiles)
void
updateState(QSGMaterialShader.RenderState state, QSGMaterial newMaterial, QSGMaterial oldMaterial)
protected String
vertexShader()
-
Constructor Details
-
QSGMaterialShader
public QSGMaterialShader() -
QSGMaterialShader
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
program
-
setShaderSourceFile
@QtUninvokable protected final void setShaderSourceFile(QOpenGLShader.ShaderType type, String sourceFile) -
setShaderSourceFiles
@QtUninvokable protected final void setShaderSourceFiles(QOpenGLShader.ShaderType type, Collection<String> sourceFiles) -
activate
-
attributeNames
-
compile
-
deactivate
-
fragmentShader
-
initialize
-
updateState
@QtUninvokable public void updateState(QSGMaterialShader.RenderState state, QSGMaterial newMaterial, QSGMaterial oldMaterial) -
vertexShader
-