PythonQt.QtGui.QOpenGLShader · declarations 001
Back to PythonQt.QtGui.QOpenGLShader
Compute
instance-attribute
Compute: Any
Fragment
instance-attribute
Fragment: Any
Geometry
instance-attribute
Geometry: Any
ShaderType
instance-attribute
ShaderType: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
ShaderTypeBit
instance-attribute
ShaderTypeBit: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
TessellationControl
instance-attribute
TessellationControl: Any
TessellationEvaluation
instance-attribute
TessellationEvaluation: Any
Vertex
instance-attribute
Vertex: Any
compileSourceCode
compileSourceCode(source: Any) -> bool
X.compileSourceCode(source) -> bool
Supplemental documentation: Qt 5 reference:
bool QOpenGLShader::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 QOpenGLShader::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 QOpenGLShader::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/qopenglshader.html#compileSourceCode
compileSourceFile
compileSourceFile(fileName: str) -> bool
X.compileSourceFile(fileName) -> bool
Supplemental documentation: Qt 5 reference:
bool QOpenGLShader::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/qopenglshader.html#compileSourceFile
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QOpenGLShader.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 QOpenGLShader::hasOpenGLShaders(QOpenGLShader::ShaderType type, QOpenGLContext *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
QOpenGLContext::currentContext()
is used.
Upstream PySide2 reference signatures (binding differences may apply):
hasOpenGLShaders(type: PySide2.QtGui.QOpenGLShader.ShaderType, context: typing.Optional[PySide2.QtGui.QOpenGLContext]=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qopenglshader.html#hasOpenGLShaders
isCompiled
isCompiled() -> bool
X.isCompiled() -> bool
Supplemental documentation: Qt 5 reference:
bool QOpenGLShader::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/qopenglshader.html#isCompiled
log
log() -> str
X.log() -> str
Supplemental documentation: Qt 5 reference:
QString QOpenGLShader::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/qopenglshader.html#log
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QOpenGLShader.objectNameChanged; argument details are not documented.
shaderId
shaderId() -> int
X.shaderId() -> int
Supplemental documentation: Qt 5 reference:
GLuint QOpenGLShader::shaderId() const
Returns the OpenGL identifier associated with this shader.
See also QOpenGLShaderProgram::programId().
Upstream PySide2 reference signatures (binding differences may apply):
shaderId(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qopenglshader.html#shaderId
shaderType
shaderType() -> Any
X.shaderType()
Supplemental documentation: Qt 5 reference:
QOpenGLShader::ShaderType QOpenGLShader::shaderType() const
Returns the type of this shader.
Upstream PySide2 reference signatures (binding differences may apply):
shaderType(self) -> PySide2.QtGui.QOpenGLShader.ShaderType
Source: https://doc.qt.io/archives/qt-5.15/qopenglshader.html#shaderType
sourceCode
sourceCode() -> Any
X.sourceCode() -> PythonQt.QtCore.QByteArray
Supplemental documentation: Qt 5 reference:
QByteArray QOpenGLShader::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/qopenglshader.html#sourceCode