Skip to content

PythonQt.QtOpenGL.QGLShader · declarations 001

Back to PythonQt.QtOpenGL.QGLShader

compileSourceCode

compileSourceCode(source: Any) -> bool

X.compileSourceCode(source) -> bool

Supplemental documentation: Qt 5 reference:

bool QGLShader::compileSourceCode(const char *source)

Sets the source code for this shader and compiles it. Returns true if the source was successfully compiled, false otherwise.

See also compileSourceFile().

bool QGLShader::compileSourceCode(const QByteArray \&source)

This is an overloaded function.

Sets the source code for this shader and compiles it. Returns true if the source was successfully compiled, false otherwise.

See also compileSourceFile().

bool QGLShader::compileSourceCode(const QString \&source)

This is an overloaded function.

Sets the source code for this shader and compiles it. Returns true if the source was successfully compiled, false otherwise.

See also compileSourceFile().

Upstream PySide2 reference signatures (binding differences may apply):

compileSourceCode(self, source: PySide2.QtCore.QByteArray) -> bool
compileSourceCode(self, source: str) -> bool
compileSourceCode(self, source: str) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#compileSourceCode

compileSourceFile

compileSourceFile(fileName: str) -> bool

X.compileSourceFile(fileName) -> bool

Supplemental documentation: Qt 5 reference:

bool QGLShader::compileSourceFile(const QString \&fileName)

Sets the source code for this shader to the contents of fileName and compiles it. Returns true if the file could be opened and the source compiled, false otherwise.

See also compileSourceCode().

Upstream PySide2 reference signatures (binding differences may apply):

compileSourceFile(self, fileName: str) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#compileSourceFile

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtOpenGL.QGLShader.destroyed; argument details are not documented.

hasOpenGLShaders

hasOpenGLShaders(type: Any, context: Any) -> bool

X.hasOpenGLShaders(type, context) -> bool

Supplemental documentation: Qt 5 reference:

[static] bool QGLShader::hasOpenGLShaders(QGLShader::ShaderType type, const QGLContext *context \= nullptr)

Returns true if shader programs of type type are supported on this system; false otherwise.

The context is used to resolve the GLSL extensions. If context is nullptr, then QGLContext::currentContext() is used.

This function was introduced in Qt 4.7.

Upstream PySide2 reference signatures (binding differences may apply):

hasOpenGLShaders(type: PySide2.QtOpenGL.QGLShader.ShaderType, context: typing.Optional[PySide2.QtOpenGL.QGLContext]=...) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#hasOpenGLShaders

isCompiled

isCompiled() -> bool

X.isCompiled() -> bool

Supplemental documentation: Qt 5 reference:

bool QGLShader::isCompiled() const

Returns true if this shader has been compiled; false otherwise.

See also compileSourceCode() and compileSourceFile().

Upstream PySide2 reference signatures (binding differences may apply):

isCompiled(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#isCompiled

log

log() -> str

X.log() -> str

Supplemental documentation: Qt 5 reference:

QString QGLShader::log() const

Returns the errors and warnings that occurred during the last compile.

See also compileSourceCode() and compileSourceFile().

Upstream PySide2 reference signatures (binding differences may apply):

log(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#log

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtOpenGL.QGLShader.objectNameChanged; argument details are not documented.

shaderId

shaderId() -> int

X.shaderId() -> int

Supplemental documentation: Qt 5 reference:

GLuint QGLShader::shaderId() const

Returns the OpenGL identifier associated with this shader.

See also QGLShaderProgram::programId().

Upstream PySide2 reference signatures (binding differences may apply):

shaderId(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#shaderId

shaderType

shaderType() -> Any

X.shaderType()

Supplemental documentation: Qt 5 reference:

QGLShader::ShaderType QGLShader::shaderType() const

Returns the type of this shader.

Upstream PySide2 reference signatures (binding differences may apply):

shaderType(self) -> PySide2.QtOpenGL.QGLShader.ShaderType

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#shaderType

sourceCode

sourceCode() -> Any

X.sourceCode() -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QGLShader::sourceCode() const

Returns the source code for this shader.

See also compileSourceCode().

Upstream PySide2 reference signatures (binding differences may apply):

sourceCode(self) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qglshader.html#sourceCode