java.lang.Object
io.qt.QtObject
io.qt.quick.QSGMaterialShader
- All Implemented Interfaces:
QtObjectInterface
- Direct Known Subclasses:
QSGMaterialRhiShader
,QSGSimpleMaterialShader
Represents an OpenGL shader program in the renderer
Java wrapper for Qt class QSGMaterialShader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
QSGMaterialShader::RenderState encapsulates the current rendering state during a call to QSGMaterialShader::updateState() -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
abstract String []
protected void
compile()
void
protected String
protected void
final QOpenGLShaderProgram
program()
protected final void
setShaderSourceFile
(QOpenGLShader.ShaderType type, String sourceFile) protected final void
setShaderSourceFiles
(QOpenGLShader.ShaderType type, Collection<String> sourceFiles) void
updateState
(QSGMaterialShader.RenderState state, QSGMaterial newMaterial, QSGMaterial oldMaterial) protected String
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QSGMaterialShader
public QSGMaterialShader()
-
-
Method Details
-
program
- Returns:
-
setShaderSourceFile
@QtUninvokable protected final void setShaderSourceFile(QOpenGLShader.ShaderType type, String sourceFile) - Parameters:
type
-sourceFile
-
-
setShaderSourceFiles
@QtUninvokable protected final void setShaderSourceFiles(QOpenGLShader.ShaderType type, Collection<String> sourceFiles) - Parameters:
type
-sourceFiles
-
-
activate
-
attributeNames
- Returns:
-
compile
-
deactivate
-
fragmentShader
- Returns:
-
initialize
-
updateState
@QtUninvokable public void updateState(QSGMaterialShader.RenderState state, QSGMaterial newMaterial, QSGMaterial oldMaterial) - Parameters:
state
-newMaterial
-oldMaterial
-
-
vertexShader
- Returns:
-