[][src]Struct qt_gui::QOpenGLShaderProgram

#[repr(C)]pub struct QOpenGLShaderProgram { /* fields omitted */ }

The QOpenGLShaderProgram class allows OpenGL shader programs to be linked and used.

C++ class: QOpenGLShaderProgram.

C++ documentation:

The QOpenGLShaderProgram class allows OpenGL shader programs to be linked and used.

Methods

impl QOpenGLShaderProgram[src]

pub fn slot_shader_destroyed(&self) -> Receiver<()>[src]

Returns a built-in Qt slot QOpenGLShaderProgram::shaderDestroyed that can be passed to qt_core::Signal::connect.

pub unsafe fn add_cacheable_shader_from_source_code_q_flags_shader_type_bit_char(
    &self,
    type_: QFlags<ShaderTypeBit>,
    source: *const c_char
) -> bool
[src]

Registers the shader of the specified type and source to this program. Unlike addShaderFromSourceCode(), this function does not perform compilation. Compilation is deferred to link(), and may not happen at all, because link() may potentially use a program binary from Qt's shader disk cache. This will typically lead to a significant increase in performance.

Calls C++ function: bool QOpenGLShaderProgram::addCacheableShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit> type, const char* source).

C++ documentation:

Registers the shader of the specified type and source to this program. Unlike addShaderFromSourceCode(), this function does not perform compilation. Compilation is deferred to link(), and may not happen at all, because link() may potentially use a program binary from Qt's shader disk cache. This will typically lead to a significant increase in performance.

Returns true if the shader has been registered or, in the non-cached case, compiled successfully; false if there was an error. The compilation error messages can be retrieved via log().

When the disk cache is disabled, via Qt::AA_DisableShaderDiskCache for example, or the OpenGL context has no support for context binaries, calling this function is equivalent to addShaderFromSourceCode().

This function was introduced in Qt 5.9.

See also addShaderFromSourceCode() and addCacheableShaderFromSourceFile().

pub unsafe fn add_cacheable_shader_from_source_code_q_flags_shader_type_bit_q_byte_array(
    &self,
    type_: QFlags<ShaderTypeBit>,
    source: impl CastInto<Ref<QByteArray>>
) -> bool
[src]

This is an overloaded function.

Calls C++ function: bool QOpenGLShaderProgram::addCacheableShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit> type, const QByteArray& source).

C++ documentation:

This is an overloaded function.

Registers the shader of the specified type and source to this program. Unlike addShaderFromSourceCode(), this function does not perform compilation. Compilation is deferred to link(), and may not happen at all, because link() may potentially use a program binary from Qt's shader disk cache. This will typically lead to a significant increase in performance.

Returns true if the shader has been registered or, in the non-cached case, compiled successfully; false if there was an error. The compilation error messages can be retrieved via log().

When the disk cache is disabled, via Qt::AA_DisableShaderDiskCache for example, or the OpenGL context has no support for context binaries, calling this function is equivalent to addShaderFromSourceCode().

This function was introduced in Qt 5.9.

See also addShaderFromSourceCode() and addCacheableShaderFromSourceFile().

pub unsafe fn add_cacheable_shader_from_source_code_q_flags_shader_type_bit_q_string(
    &self,
    type_: QFlags<ShaderTypeBit>,
    source: impl CastInto<Ref<QString>>
) -> bool
[src]

This is an overloaded function.

Calls C++ function: bool QOpenGLShaderProgram::addCacheableShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit> type, const QString& source).

C++ documentation:

This is an overloaded function.

Registers the shader of the specified type and source to this program. Unlike addShaderFromSourceCode(), this function does not perform compilation. Compilation is deferred to link(), and may not happen at all, because link() may potentially use a program binary from Qt's shader disk cache. This will typically lead to a significant increase in performance.

When the disk cache is disabled, via Qt::AA_DisableShaderDiskCache for example, or the OpenGL context has no support for context binaries, calling this function is equivalent to addShaderFromSourceCode().

This function was introduced in Qt 5.9.

See also addShaderFromSourceCode() and addCacheableShaderFromSourceFile().

pub unsafe fn add_cacheable_shader_from_source_file(
    &self,
    type_: QFlags<ShaderTypeBit>,
    file_name: impl CastInto<Ref<QString>>
) -> bool
[src]

Registers the shader of the specified type and fileName to this program. Unlike addShaderFromSourceFile(), this function does not perform compilation. Compilation is deferred to link(), and may not happen at all, because link() may potentially use a program binary from Qt's shader disk cache. This will typically lead to a significant increase in performance.

Calls C++ function: bool QOpenGLShaderProgram::addCacheableShaderFromSourceFile(QFlags<QOpenGLShader::ShaderTypeBit> type, const QString& fileName).

C++ documentation:

Registers the shader of the specified type and fileName to this program. Unlike addShaderFromSourceFile(), this function does not perform compilation. Compilation is deferred to link(), and may not happen at all, because link() may potentially use a program binary from Qt's shader disk cache. This will typically lead to a significant increase in performance.

Returns true if the file has been read successfully, false if the file could not be opened or the normal, non-cached compilation of the shader has failed. The compilation error messages can be retrieved via log().

When the disk cache is disabled, via Qt::AA_DisableShaderDiskCache for example, or the OpenGL context has no support for context binaries, calling this function is equivalent to addShaderFromSourceFile().

This function was introduced in Qt 5.9.

See also addShaderFromSourceFile() and addCacheableShaderFromSourceCode().

pub unsafe fn add_shader(
    &self,
    shader: impl CastInto<Ptr<QOpenGLShader>>
) -> bool
[src]

Adds a compiled shader to this shader program. Returns true if the shader could be added, or false otherwise.

Calls C++ function: bool QOpenGLShaderProgram::addShader(QOpenGLShader* shader).

C++ documentation:

Adds a compiled shader to this shader program. Returns true if the shader could be added, or false otherwise.

Ownership of the shader object remains with the caller. It will not be deleted when this QOpenGLShaderProgram instance is deleted. This allows the caller to add the same shader to multiple shader programs.

See also addShaderFromSourceCode(), addShaderFromSourceFile(), removeShader(), link(), and removeAllShaders().

pub unsafe fn add_shader_from_source_code_q_flags_shader_type_bit_char(
    &self,
    type_: QFlags<ShaderTypeBit>,
    source: *const c_char
) -> bool
[src]

Compiles source as a shader of the specified type and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log().

Calls C++ function: bool QOpenGLShaderProgram::addShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit> type, const char* source).

C++ documentation:

Compiles source as a shader of the specified type and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log().

This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QOpenGLShader first.

See also addShader(), addShaderFromSourceFile(), removeShader(), link(), log(), and removeAllShaders().

pub unsafe fn add_shader_from_source_code_q_flags_shader_type_bit_q_byte_array(
    &self,
    type_: QFlags<ShaderTypeBit>,
    source: impl CastInto<Ref<QByteArray>>
) -> bool
[src]

This is an overloaded function.

Calls C++ function: bool QOpenGLShaderProgram::addShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit> type, const QByteArray& source).

C++ documentation:

This is an overloaded function.

Compiles source as a shader of the specified type and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log().

This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QOpenGLShader first.

See also addShader(), addShaderFromSourceFile(), removeShader(), link(), log(), and removeAllShaders().

pub unsafe fn add_shader_from_source_code_q_flags_shader_type_bit_q_string(
    &self,
    type_: QFlags<ShaderTypeBit>,
    source: impl CastInto<Ref<QString>>
) -> bool
[src]

This is an overloaded function.

Calls C++ function: bool QOpenGLShaderProgram::addShaderFromSourceCode(QFlags<QOpenGLShader::ShaderTypeBit> type, const QString& source).

C++ documentation:

This is an overloaded function.

Compiles source as a shader of the specified type and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log().

This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QOpenGLShader first.

See also addShader(), addShaderFromSourceFile(), removeShader(), link(), log(), and removeAllShaders().

pub unsafe fn add_shader_from_source_file(
    &self,
    type_: QFlags<ShaderTypeBit>,
    file_name: impl CastInto<Ref<QString>>
) -> bool
[src]

Compiles the contents of fileName as a shader of the specified type and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log().

Calls C++ function: bool QOpenGLShaderProgram::addShaderFromSourceFile(QFlags<QOpenGLShader::ShaderTypeBit> type, const QString& fileName).

C++ documentation:

Compiles the contents of fileName as a shader of the specified type and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via log().

This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of QOpenGLShader first.

See also addShader() and addShaderFromSourceCode().

pub unsafe fn attribute_location_char(&self, name: *const c_char) -> c_int[src]

Returns the location of the attribute name within this shader program's parameter list. Returns -1 if name is not a valid attribute for this shader program.

Calls C++ function: int QOpenGLShaderProgram::attributeLocation(const char* name) const.

C++ documentation:

Returns the location of the attribute name within this shader program's parameter list. Returns -1 if name is not a valid attribute for this shader program.

See also uniformLocation() and bindAttributeLocation().

pub unsafe fn attribute_location_q_byte_array(
    &self,
    name: impl CastInto<Ref<QByteArray>>
) -> c_int
[src]

This is an overloaded function.

Calls C++ function: int QOpenGLShaderProgram::attributeLocation(const QByteArray& name) const.

C++ documentation:

This is an overloaded function.

Returns the location of the attribute name within this shader program's parameter list. Returns -1 if name is not a valid attribute for this shader program.

See also uniformLocation() and bindAttributeLocation().

pub unsafe fn attribute_location_q_string(
    &self,
    name: impl CastInto<Ref<QString>>
) -> c_int
[src]

This is an overloaded function.

Calls C++ function: int QOpenGLShaderProgram::attributeLocation(const QString& name) const.

C++ documentation:

This is an overloaded function.

Returns the location of the attribute name within this shader program's parameter list. Returns -1 if name is not a valid attribute for this shader program.

See also uniformLocation() and bindAttributeLocation().

pub unsafe fn bind(&self) -> bool[src]

Binds this shader program to the active QOpenGLContext and makes it the current shader program. Any previously bound shader program is released. This is equivalent to calling glUseProgram() on programId(). Returns true if the program was successfully bound; false otherwise. If the shader program has not yet been linked, or it needs to be re-linked, this function will call link().

Calls C++ function: bool QOpenGLShaderProgram::bind().

C++ documentation:

Binds this shader program to the active QOpenGLContext and makes it the current shader program. Any previously bound shader program is released. This is equivalent to calling glUseProgram() on programId(). Returns true if the program was successfully bound; false otherwise. If the shader program has not yet been linked, or it needs to be re-linked, this function will call link().

See also link() and release().

pub unsafe fn bind_attribute_location_char_int(
    &self,
    name: *const c_char,
    location: c_int
)
[src]

Binds the attribute name to the specified location. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.

Calls C++ function: void QOpenGLShaderProgram::bindAttributeLocation(const char* name, int location).

C++ documentation:

Binds the attribute name to the specified location. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.

When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.

See also attributeLocation().

pub unsafe fn bind_attribute_location_q_byte_array_int(
    &self,
    name: impl CastInto<Ref<QByteArray>>,
    location: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::bindAttributeLocation(const QByteArray& name, int location).

C++ documentation:

This is an overloaded function.

Binds the attribute name to the specified location. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.

When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.

See also attributeLocation().

pub unsafe fn bind_attribute_location_q_string_int(
    &self,
    name: impl CastInto<Ref<QString>>,
    location: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::bindAttributeLocation(const QString& name, int location).

C++ documentation:

This is an overloaded function.

Binds the attribute name to the specified location. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.

When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.

See also attributeLocation().

pub unsafe fn create(&self) -> bool[src]

Requests the shader program's id to be created immediately. Returns true if successful; false otherwise.

Calls C++ function: bool QOpenGLShaderProgram::create().

C++ documentation:

Requests the shader program's id to be created immediately. Returns true if successful; false otherwise.

This function is primarily useful when combining QOpenGLShaderProgram with other OpenGL functions that operate directly on the shader program id, like GL_OES_get_program_binary.

When the shader program is used normally, the shader program's id will be created on demand.

This function was introduced in Qt 5.3.

See also programId().

pub unsafe fn default_inner_tessellation_levels(&self) -> CppBox<QVectorOfFloat>[src]

Returns the default inner tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

Calls C++ function: QVector<float> QOpenGLShaderProgram::defaultInnerTessellationLevels() const.

C++ documentation:

Returns the default inner tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

Returns a QVector of floats describing the inner tessellation levels. The vector will always have two elements but not all of them make sense for every mode of tessellation.

Note: This returns the global OpenGL state value. It is not specific to this QOpenGLShaderProgram instance.

See also setDefaultInnerTessellationLevels() and defaultOuterTessellationLevels().

pub unsafe fn default_outer_tessellation_levels(&self) -> CppBox<QVectorOfFloat>[src]

Returns the default outer tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

Calls C++ function: QVector<float> QOpenGLShaderProgram::defaultOuterTessellationLevels() const.

C++ documentation:

Returns the default outer tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

Returns a QVector of floats describing the outer tessellation levels. The vector will always have four elements but not all of them make sense for every mode of tessellation.

Note: This returns the global OpenGL state value. It is not specific to this QOpenGLShaderProgram instance.

See also setDefaultOuterTessellationLevels() and defaultInnerTessellationLevels().

pub unsafe fn disable_attribute_array_int(&self, location: c_int)[src]

Disables the vertex array at location in this shader program that was enabled by a previous call to enableAttributeArray().

Calls C++ function: void QOpenGLShaderProgram::disableAttributeArray(int location).

C++ documentation:

Disables the vertex array at location in this shader program that was enabled by a previous call to enableAttributeArray().

See also enableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().

pub unsafe fn disable_attribute_array_char(&self, name: *const c_char)[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::disableAttributeArray(const char* name).

C++ documentation:

This is an overloaded function.

Disables the vertex array called name in this shader program that was enabled by a previous call to enableAttributeArray().

See also enableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().

pub unsafe fn enable_attribute_array_int(&self, location: c_int)[src]

Enables the vertex array at location in this shader program so that the value set by setAttributeArray() on location will be used by the shader program.

Calls C++ function: void QOpenGLShaderProgram::enableAttributeArray(int location).

C++ documentation:

Enables the vertex array at location in this shader program so that the value set by setAttributeArray() on location will be used by the shader program.

See also disableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().

pub unsafe fn enable_attribute_array_char(&self, name: *const c_char)[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::enableAttributeArray(const char* name).

C++ documentation:

This is an overloaded function.

Enables the vertex array called name in this shader program so that the value set by setAttributeArray() on name will be used by the shader program.

See also disableAttributeArray(), setAttributeArray(), setAttributeValue(), and setUniformValue().

pub unsafe fn has_opengl_shader_programs_1a(
    context: impl CastInto<Ptr<QOpenGLContext>>
) -> bool
[src]

Returns true if shader programs written in the OpenGL Shading Language (GLSL) are supported on this system; false otherwise.

Calls C++ function: static bool QOpenGLShaderProgram::hasOpenGLShaderPrograms(QOpenGLContext* context = …).

C++ documentation:

Returns true if shader programs written in the OpenGL Shading Language (GLSL) are supported on this system; false otherwise.

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

pub unsafe fn has_opengl_shader_programs_0a() -> bool[src]

Returns true if shader programs written in the OpenGL Shading Language (GLSL) are supported on this system; false otherwise.

Calls C++ function: static bool QOpenGLShaderProgram::hasOpenGLShaderPrograms().

C++ documentation:

Returns true if shader programs written in the OpenGL Shading Language (GLSL) are supported on this system; false otherwise.

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

pub unsafe fn is_linked(&self) -> bool[src]

Returns true if this shader program has been linked; false otherwise.

Calls C++ function: bool QOpenGLShaderProgram::isLinked() const.

C++ documentation:

Returns true if this shader program has been linked; false otherwise.

See also link().

Links together the shaders that were added to this program with addShader(). Returns true if the link was successful or false otherwise. If the link failed, the error messages can be retrieved with log().

Calls C++ function: virtual bool QOpenGLShaderProgram::link().

C++ documentation:

Links together the shaders that were added to this program with addShader(). Returns true if the link was successful or false otherwise. If the link failed, the error messages can be retrieved with log().

Subclasses can override this function to initialize attributes and uniform variables for use in specific shader programs.

If the shader program was already linked, calling this function again will force it to be re-linked.

When shaders were added to this program via addCacheableShaderFromSourceCode() or addCacheableShaderFromSourceFile(), program binaries are supported, and a cached binary is available on disk, actual compilation and linking are skipped. Instead, link() will initialize the program with the binary blob via glProgramBinary(). If there is no cached version of the program or it was generated with a different driver version, the shaders will be compiled from source and the program will get linked normally. This allows seamless upgrading of the graphics drivers, without having to worry about potentially incompatible binary formats.

See also addShader() and log().

pub unsafe fn log(&self) -> CppBox<QString>[src]

Returns the errors and warnings that occurred during the last link() or addShader() with explicitly specified source code.

Calls C++ function: QString QOpenGLShaderProgram::log() const.

C++ documentation:

Returns the errors and warnings that occurred during the last link() or addShader() with explicitly specified source code.

See also link().

pub unsafe fn max_geometry_output_vertices(&self) -> c_int[src]

Returns the hardware limit for how many vertices a geometry shader can output.

Calls C++ function: int QOpenGLShaderProgram::maxGeometryOutputVertices() const.

C++ documentation:

Returns the hardware limit for how many vertices a geometry shader can output.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QOpenGLShaderProgram::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QObject>>
) -> QBox<QOpenGLShaderProgram>
[src]

Constructs a new shader program and attaches it to parent. The program will be invalid until addShader() is called.

Calls C++ function: [constructor] void QOpenGLShaderProgram::QOpenGLShaderProgram(QObject* parent = …).

C++ documentation:

Constructs a new shader program and attaches it to parent. The program will be invalid until addShader() is called.

The shader program will be associated with the current QOpenGLContext.

See also addShader().

pub unsafe fn new_0a() -> QBox<QOpenGLShaderProgram>[src]

The QOpenGLShaderProgram class allows OpenGL shader programs to be linked and used.

Calls C++ function: [constructor] void QOpenGLShaderProgram::QOpenGLShaderProgram().

C++ documentation:

The QOpenGLShaderProgram class allows OpenGL shader programs to be linked and used.

pub unsafe fn patch_vertex_count(&self) -> c_int[src]

Returns the number of vertices per-patch to be used when rendering.

Calls C++ function: int QOpenGLShaderProgram::patchVertexCount() const.

C++ documentation:

Returns the number of vertices per-patch to be used when rendering.

Note: This returns the global OpenGL state value. It is not specific to this QOpenGLShaderProgram instance.

See also setPatchVertexCount().

pub unsafe fn program_id(&self) -> u32[src]

Returns the OpenGL identifier associated with this shader program.

Calls C++ function: GLuint QOpenGLShaderProgram::programId() const.

C++ documentation:

Returns the OpenGL identifier associated with this shader program.

See also QOpenGLShader::shaderId().

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QOpenGLShaderProgram::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QOpenGLShaderProgram::qt_metacast(const char* arg1).

pub unsafe fn release(&self)[src]

Releases the active shader program from the current QOpenGLContext. This is equivalent to calling glUseProgram(0).

Calls C++ function: void QOpenGLShaderProgram::release().

C++ documentation:

Releases the active shader program from the current QOpenGLContext. This is equivalent to calling glUseProgram(0).

See also bind().

pub unsafe fn remove_all_shaders(&self)[src]

Removes all of the shaders that were added to this program previously. The QOpenGLShader objects for the shaders will not be deleted if they were constructed externally. QOpenGLShader objects that are constructed internally by QOpenGLShaderProgram will be deleted.

Calls C++ function: void QOpenGLShaderProgram::removeAllShaders().

C++ documentation:

Removes all of the shaders that were added to this program previously. The QOpenGLShader objects for the shaders will not be deleted if they were constructed externally. QOpenGLShader objects that are constructed internally by QOpenGLShaderProgram will be deleted.

See also addShader() and removeShader().

pub unsafe fn remove_shader(&self, shader: impl CastInto<Ptr<QOpenGLShader>>)[src]

Removes shader from this shader program. The object is not deleted.

Calls C++ function: void QOpenGLShaderProgram::removeShader(QOpenGLShader* shader).

C++ documentation:

Removes shader from this shader program. The object is not deleted.

The shader program must be valid in the current QOpenGLContext.

See also addShader(), link(), and removeAllShaders().

pub unsafe fn set_attribute_array_int_float2_int(
    &self,
    location: c_int,
    values: *const c_float,
    tuple_size: c_int,
    stride: c_int
)
[src]

Sets an array of vertex values on the attribute at location in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const float* values, int tupleSize, int stride = …).

C++ documentation:

Sets an array of vertex values on the attribute at location in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_q_vector_2d_int(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector2D>>,
    stride: c_int
)
[src]

Sets an array of 2D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const QVector2D* values, int stride = …).

C++ documentation:

Sets an array of 2D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_q_vector_3d_int(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector3D>>,
    stride: c_int
)
[src]

Sets an array of 3D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const QVector3D* values, int stride = …).

C++ documentation:

Sets an array of 3D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_q_vector_4d_int(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector4D>>,
    stride: c_int
)
[src]

Sets an array of 4D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const QVector4D* values, int stride = …).

C++ documentation:

Sets an array of 4D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_uint_void2_int(
    &self,
    location: c_int,
    type_: c_uint,
    values: *const c_void,
    tuple_size: c_int,
    stride: c_int
)
[src]

Sets an array of vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, unsigned int type, const void* values, int tupleSize, int stride = …).

C++ documentation:

Sets an array of vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The type indicates the type of elements in the values array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

The setAttributeBuffer() function can be used to set the attribute array to an offset within a vertex buffer.

Note: Normalization will be enabled. If this is not desired, call glVertexAttribPointer directly through QOpenGLFunctions.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), disableAttributeArray(), and setAttributeBuffer().

pub unsafe fn set_attribute_array_char_float2_int(
    &self,
    name: *const c_char,
    values: *const c_float,
    tuple_size: c_int,
    stride: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const float* values, int tupleSize, int stride = …).

C++ documentation:

This is an overloaded function.

Sets an array of vertex values on the attribute called name in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_q_vector_2d_int(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector2D>>,
    stride: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const QVector2D* values, int stride = …).

C++ documentation:

This is an overloaded function.

Sets an array of 2D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_q_vector_3d_int(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector3D>>,
    stride: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const QVector3D* values, int stride = …).

C++ documentation:

This is an overloaded function.

Sets an array of 3D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_q_vector_4d_int(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector4D>>,
    stride: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const QVector4D* values, int stride = …).

C++ documentation:

This is an overloaded function.

Sets an array of 4D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_uint_void2_int(
    &self,
    name: *const c_char,
    type_: c_uint,
    values: *const c_void,
    tuple_size: c_int,
    stride: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, unsigned int type, const void* values, int tupleSize, int stride = …).

C++ documentation:

This is an overloaded function.

Sets an array of vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The type indicates the type of elements in the values array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the name. Otherwise the value specified with setAttributeValue() for name will be used.

The setAttributeBuffer() function can be used to set the attribute array to an offset within a vertex buffer.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), disableAttributeArray(), and setAttributeBuffer().

pub unsafe fn set_attribute_array_int_float_int(
    &self,
    location: c_int,
    values: *const c_float,
    tuple_size: c_int
)
[src]

Sets an array of vertex values on the attribute at location in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const float* values, int tupleSize).

C++ documentation:

Sets an array of vertex values on the attribute at location in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_q_vector_2d(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector2D>>
)
[src]

Sets an array of 2D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const QVector2D* values).

C++ documentation:

Sets an array of 2D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_q_vector_3d(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector3D>>
)
[src]

Sets an array of 3D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const QVector3D* values).

C++ documentation:

Sets an array of 3D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_q_vector_4d(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector4D>>
)
[src]

Sets an array of 4D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, const QVector4D* values).

C++ documentation:

Sets an array of 4D vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_int_uint_void_int(
    &self,
    location: c_int,
    type_: c_uint,
    values: *const c_void,
    tuple_size: c_int
)
[src]

Sets an array of vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(int location, unsigned int type, const void* values, int tupleSize).

C++ documentation:

Sets an array of vertex values on the attribute at location in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The type indicates the type of elements in the values array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

The setAttributeBuffer() function can be used to set the attribute array to an offset within a vertex buffer.

Note: Normalization will be enabled. If this is not desired, call glVertexAttribPointer directly through QOpenGLFunctions.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), disableAttributeArray(), and setAttributeBuffer().

pub unsafe fn set_attribute_array_char_float_int(
    &self,
    name: *const c_char,
    values: *const c_float,
    tuple_size: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const float* values, int tupleSize).

C++ documentation:

This is an overloaded function.

Sets an array of vertex values on the attribute called name in this shader program. The tupleSize indicates the number of components per vertex (1, 2, 3, or 4), and the stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_q_vector_2d(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector2D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const QVector2D* values).

C++ documentation:

This is an overloaded function.

Sets an array of 2D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_q_vector_3d(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector3D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const QVector3D* values).

C++ documentation:

This is an overloaded function.

Sets an array of 3D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_q_vector_4d(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector4D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, const QVector4D* values).

C++ documentation:

This is an overloaded function.

Sets an array of 4D vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The array will become active when enableAttributeArray() is called on name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), and disableAttributeArray().

pub unsafe fn set_attribute_array_char_uint_void_int(
    &self,
    name: *const c_char,
    type_: c_uint,
    values: *const c_void,
    tuple_size: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeArray(const char* name, unsigned int type, const void* values, int tupleSize).

C++ documentation:

This is an overloaded function.

Sets an array of vertex values on the attribute called name in this shader program. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in values.

The type indicates the type of elements in the values array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the name. Otherwise the value specified with setAttributeValue() for name will be used.

The setAttributeBuffer() function can be used to set the attribute array to an offset within a vertex buffer.

See also setAttributeValue(), setUniformValue(), enableAttributeArray(), disableAttributeArray(), and setAttributeBuffer().

pub unsafe fn set_attribute_buffer_int_uint3_int(
    &self,
    location: c_int,
    type_: c_uint,
    offset: c_int,
    tuple_size: c_int,
    stride: c_int
)
[src]

Sets an array of vertex values on the attribute at location in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.

Calls C++ function: void QOpenGLShaderProgram::setAttributeBuffer(int location, unsigned int type, int offset, int tupleSize, int stride = …).

C++ documentation:

Sets an array of vertex values on the attribute at location in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.

The type indicates the type of elements in the vertex value array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

Note: Normalization will be enabled. If this is not desired, call glVertexAttribPointer directly through QOpenGLFunctions.

See also setAttributeArray().

pub unsafe fn set_attribute_buffer_char_uint3_int(
    &self,
    name: *const c_char,
    type_: c_uint,
    offset: c_int,
    tuple_size: c_int,
    stride: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeBuffer(const char* name, unsigned int type, int offset, int tupleSize, int stride = …).

C++ documentation:

This is an overloaded function.

Sets an array of vertex values on the attribute called name in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.

The type indicates the type of elements in the vertex value array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeArray().

pub unsafe fn set_attribute_buffer_int_uint2_int(
    &self,
    location: c_int,
    type_: c_uint,
    offset: c_int,
    tuple_size: c_int
)
[src]

Sets an array of vertex values on the attribute at location in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.

Calls C++ function: void QOpenGLShaderProgram::setAttributeBuffer(int location, unsigned int type, int offset, int tupleSize).

C++ documentation:

Sets an array of vertex values on the attribute at location in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.

The type indicates the type of elements in the vertex value array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the location. Otherwise the value specified with setAttributeValue() for location will be used.

Note: Normalization will be enabled. If this is not desired, call glVertexAttribPointer directly through QOpenGLFunctions.

See also setAttributeArray().

pub unsafe fn set_attribute_buffer_char_uint2_int(
    &self,
    name: *const c_char,
    type_: c_uint,
    offset: c_int,
    tuple_size: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeBuffer(const char* name, unsigned int type, int offset, int tupleSize).

C++ documentation:

This is an overloaded function.

Sets an array of vertex values on the attribute called name in this shader program, starting at a specific offset in the currently bound vertex buffer. The stride indicates the number of bytes between vertices. A default stride value of zero indicates that the vertices are densely packed in the value array.

The type indicates the type of elements in the vertex value array, usually GL_FLOAT, GL_UNSIGNED_BYTE, etc. The tupleSize indicates the number of components per vertex: 1, 2, 3, or 4.

The array will become active when enableAttributeArray() is called on the name. Otherwise the value specified with setAttributeValue() for name will be used.

See also setAttributeArray().

pub unsafe fn set_attribute_value_int_float(
    &self,
    location: c_int,
    value: c_float
)
[src]

Sets the attribute at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, float value).

C++ documentation:

Sets the attribute at location in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_int2_float(
    &self,
    location: c_int,
    x: c_float,
    y: c_float
)
[src]

Sets the attribute at location in the current context to the 2D vector (x, y).

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, float x, float y).

C++ documentation:

Sets the attribute at location in the current context to the 2D vector (x, y).

See also setUniformValue().

pub unsafe fn set_attribute_value_int3_float(
    &self,
    location: c_int,
    x: c_float,
    y: c_float,
    z: c_float
)
[src]

Sets the attribute at location in the current context to the 3D vector (x, y, z).

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, float x, float y, float z).

C++ documentation:

Sets the attribute at location in the current context to the 3D vector (x, y, z).

See also setUniformValue().

pub unsafe fn set_attribute_value_int4_float(
    &self,
    location: c_int,
    x: c_float,
    y: c_float,
    z: c_float,
    w: c_float
)
[src]

Sets the attribute at location in the current context to the 4D vector (x, y, z, w).

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, float x, float y, float z, float w).

C++ documentation:

Sets the attribute at location in the current context to the 4D vector (x, y, z, w).

See also setUniformValue().

pub unsafe fn set_attribute_value_int_q_vector_2d(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QVector2D>>
)
[src]

Sets the attribute at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, const QVector2D& value).

C++ documentation:

Sets the attribute at location in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_int_q_vector_3d(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QVector3D>>
)
[src]

Sets the attribute at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, const QVector3D& value).

C++ documentation:

Sets the attribute at location in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_int_q_vector_4d(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QVector4D>>
)
[src]

Sets the attribute at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, const QVector4D& value).

C++ documentation:

Sets the attribute at location in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_int_q_color(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QColor>>
)
[src]

Sets the attribute at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, const QColor& value).

C++ documentation:

Sets the attribute at location in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_int_float2_int(
    &self,
    location: c_int,
    values: *const c_float,
    columns: c_int,
    rows: c_int
)
[src]

Sets the attribute at location in the current context to the contents of values, which contains columns elements, each consisting of rows elements. The rows value should be 1, 2, 3, or 4. This function is typically used to set matrix values and column vectors.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(int location, const float* values, int columns, int rows).

C++ documentation:

Sets the attribute at location in the current context to the contents of values, which contains columns elements, each consisting of rows elements. The rows value should be 1, 2, 3, or 4. This function is typically used to set matrix values and column vectors.

See also setUniformValue().

pub unsafe fn set_attribute_value_char_float(
    &self,
    name: *const c_char,
    value: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, float value).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_char2_float(
    &self,
    name: *const c_char,
    x: c_float,
    y: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, float x, float y).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to the 2D vector (x, y).

See also setUniformValue().

pub unsafe fn set_attribute_value_char3_float(
    &self,
    name: *const c_char,
    x: c_float,
    y: c_float,
    z: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, float x, float y, float z).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to the 3D vector (x, y, z).

See also setUniformValue().

pub unsafe fn set_attribute_value_char4_float(
    &self,
    name: *const c_char,
    x: c_float,
    y: c_float,
    z: c_float,
    w: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, float x, float y, float z, float w).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to the 4D vector (x, y, z, w).

See also setUniformValue().

pub unsafe fn set_attribute_value_char_q_vector_2d(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QVector2D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, const QVector2D& value).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_char_q_vector_3d(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QVector3D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, const QVector3D& value).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_char_q_vector_4d(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QVector4D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, const QVector4D& value).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_char_q_color(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QColor>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, const QColor& value).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to value.

See also setUniformValue().

pub unsafe fn set_attribute_value_char_float2_int(
    &self,
    name: *const c_char,
    values: *const c_float,
    columns: c_int,
    rows: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setAttributeValue(const char* name, const float* values, int columns, int rows).

C++ documentation:

This is an overloaded function.

Sets the attribute called name in the current context to the contents of values, which contains columns elements, each consisting of rows elements. The rows value should be 1, 2, 3, or 4. This function is typically used to set matrix values and column vectors.

See also setUniformValue().

pub unsafe fn set_default_inner_tessellation_levels(
    &self,
    levels: impl CastInto<Ref<QVectorOfFloat>>
)
[src]

Sets the default outer tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them to levels. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

Calls C++ function: void QOpenGLShaderProgram::setDefaultInnerTessellationLevels(const QVector<float>& levels).

C++ documentation:

Sets the default outer tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them to levels. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

The levels argument should be a QVector consisting of 2 floats. Not all of the values make sense for all tessellation modes. If you specify a vector with fewer than 2 elements, the remaining elements will be given a default value of 1.

Note: This modifies global OpenGL state and is not specific to this QOpenGLShaderProgram instance. You should call this in your render function when needed, as QOpenGLShaderProgram will not apply this for you. This is purely a convenience function.

See also defaultInnerTessellationLevels() and setDefaultOuterTessellationLevels().

pub unsafe fn set_default_outer_tessellation_levels(
    &self,
    levels: impl CastInto<Ref<QVectorOfFloat>>
)
[src]

Sets the default outer tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them to levels. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

Calls C++ function: void QOpenGLShaderProgram::setDefaultOuterTessellationLevels(const QVector<float>& levels).

C++ documentation:

Sets the default outer tessellation levels to be used by the tessellation primitive generator in the event that the tessellation control shader does not output them to levels. For more details on OpenGL and Tessellation shaders see OpenGL Tessellation Shaders.

The levels argument should be a QVector consisting of 4 floats. Not all of the values make sense for all tessellation modes. If you specify a vector with fewer than 4 elements, the remaining elements will be given a default value of 1.

Note: This modifies global OpenGL state and is not specific to this QOpenGLShaderProgram instance. You should call this in your render function when needed, as QOpenGLShaderProgram will not apply this for you. This is purely a convenience function.

See also defaultOuterTessellationLevels() and setDefaultInnerTessellationLevels().

pub unsafe fn set_patch_vertex_count(&self, count: c_int)[src]

Use this function to specify to OpenGL the number of vertices in a patch to count. A patch is a custom OpenGL primitive whose interpretation is entirely defined by the tessellation shader stages. Therefore, calling this function only makes sense when using a QOpenGLShaderProgram containing tessellation stage shaders. When using OpenGL tessellation, the only primitive that can be rendered with glDraw*() functions is GL_PATCHES.

Calls C++ function: void QOpenGLShaderProgram::setPatchVertexCount(int count).

C++ documentation:

Use this function to specify to OpenGL the number of vertices in a patch to count. A patch is a custom OpenGL primitive whose interpretation is entirely defined by the tessellation shader stages. Therefore, calling this function only makes sense when using a QOpenGLShaderProgram containing tessellation stage shaders. When using OpenGL tessellation, the only primitive that can be rendered with glDraw*() functions is GL_PATCHES.

This is equivalent to calling glPatchParameteri(GL_PATCH_VERTICES, count).

Note: This modifies global OpenGL state and is not specific to this QOpenGLShaderProgram instance. You should call this in your render function when needed, as QOpenGLShaderProgram will not apply this for you. This is purely a convenience function.

See also patchVertexCount().

pub unsafe fn set_uniform_value_int_float(
    &self,
    location: c_int,
    value: c_float
)
[src]

Sets the uniform variable at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, float value).

C++ documentation:

Sets the uniform variable at location in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_i32(&self, location: c_int, value: i32)[src]

Sets the uniform variable at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, GLint value).

C++ documentation:

Sets the uniform variable at location in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_u32(&self, location: c_int, value: u32)[src]

Sets the uniform variable at location in the current context to value. This function should be used when setting sampler values.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, GLuint value).

C++ documentation:

Sets the uniform variable at location in the current context to value. This function should be used when setting sampler values.

Note: This function is not aware of unsigned int support in modern OpenGL versions and therefore treats value as a GLint and calls glUniform1i.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int2_float(
    &self,
    location: c_int,
    x: c_float,
    y: c_float
)
[src]

Sets the uniform variable at location in the current context to the 2D vector (x, y).

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, float x, float y).

C++ documentation:

Sets the uniform variable at location in the current context to the 2D vector (x, y).

See also setAttributeValue().

pub unsafe fn set_uniform_value_int3_float(
    &self,
    location: c_int,
    x: c_float,
    y: c_float,
    z: c_float
)
[src]

Sets the uniform variable at location in the current context to the 3D vector (x, y, z).

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, float x, float y, float z).

C++ documentation:

Sets the uniform variable at location in the current context to the 3D vector (x, y, z).

See also setAttributeValue().

pub unsafe fn set_uniform_value_int4_float(
    &self,
    location: c_int,
    x: c_float,
    y: c_float,
    z: c_float,
    w: c_float
)
[src]

Sets the uniform variable at location in the current context to the 4D vector (x, y, z, w).

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, float x, float y, float z, float w).

C++ documentation:

Sets the uniform variable at location in the current context to the 4D vector (x, y, z, w).

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_vector_2d(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QVector2D>>
)
[src]

Sets the uniform variable at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QVector2D& value).

C++ documentation:

Sets the uniform variable at location in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_vector_3d(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QVector3D>>
)
[src]

Sets the uniform variable at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QVector3D& value).

C++ documentation:

Sets the uniform variable at location in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_vector_4d(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QVector4D>>
)
[src]

Sets the uniform variable at location in the current context to value.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QVector4D& value).

C++ documentation:

Sets the uniform variable at location in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_color(
    &self,
    location: c_int,
    color: impl CastInto<Ref<QColor>>
)
[src]

Sets the uniform variable at location in the current context to the red, green, blue, and alpha components of color.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QColor& color).

C++ documentation:

Sets the uniform variable at location in the current context to the red, green, blue, and alpha components of color.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_point(
    &self,
    location: c_int,
    point: impl CastInto<Ref<QPoint>>
)
[src]

Sets the uniform variable at location in the current context to the x and y coordinates of point.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QPoint& point).

C++ documentation:

Sets the uniform variable at location in the current context to the x and y coordinates of point.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_point_f(
    &self,
    location: c_int,
    point: impl CastInto<Ref<QPointF>>
)
[src]

Sets the uniform variable at location in the current context to the x and y coordinates of point.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QPointF& point).

C++ documentation:

Sets the uniform variable at location in the current context to the x and y coordinates of point.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_size(
    &self,
    location: c_int,
    size: impl CastInto<Ref<QSize>>
)
[src]

Sets the uniform variable at location in the current context to the width and height of the given size.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QSize& size).

C++ documentation:

Sets the uniform variable at location in the current context to the width and height of the given size.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_size_f(
    &self,
    location: c_int,
    size: impl CastInto<Ref<QSizeF>>
)
[src]

Sets the uniform variable at location in the current context to the width and height of the given size.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QSizeF& size).

C++ documentation:

Sets the uniform variable at location in the current context to the width and height of the given size.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_matrix4_x4(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QMatrix4X4>>
)
[src]

Sets the uniform variable at location in the current context to a 4x4 matrix value.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix4x4& value).

C++ documentation:

Sets the uniform variable at location in the current context to a 4x4 matrix value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_int_q_transform(
    &self,
    location: c_int,
    value: impl CastInto<Ref<QTransform>>
)
[src]

Sets the uniform variable at location in the current context to a 3x3 transformation matrix value that is specified as a QTransform value.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(int location, const QTransform& value).

C++ documentation:

Sets the uniform variable at location in the current context to a 3x3 transformation matrix value that is specified as a QTransform value.

To set a QTransform value as a 4x4 matrix in a shader, use setUniformValue(location, QMatrix4x4(value)).

pub unsafe fn set_uniform_value_char_float(
    &self,
    name: *const c_char,
    value: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, float value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_i32(&self, name: *const c_char, value: i32)[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, GLint value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_u32(&self, name: *const c_char, value: u32)[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, GLuint value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to value. This function should be used when setting sampler values.

Note: This function is not aware of unsigned int support in modern OpenGL versions and therefore treats value as a GLint and calls glUniform1i.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char2_float(
    &self,
    name: *const c_char,
    x: c_float,
    y: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, float x, float y).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to the 2D vector (x, y).

See also setAttributeValue().

pub unsafe fn set_uniform_value_char3_float(
    &self,
    name: *const c_char,
    x: c_float,
    y: c_float,
    z: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, float x, float y, float z).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to the 3D vector (x, y, z).

See also setAttributeValue().

pub unsafe fn set_uniform_value_char4_float(
    &self,
    name: *const c_char,
    x: c_float,
    y: c_float,
    z: c_float,
    w: c_float
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, float x, float y, float z, float w).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to the 4D vector (x, y, z, w).

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_vector_2d(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QVector2D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QVector2D& value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_vector_3d(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QVector3D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QVector3D& value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_vector_4d(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QVector4D>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QVector4D& value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_color(
    &self,
    name: *const c_char,
    color: impl CastInto<Ref<QColor>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QColor& color).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to the red, green, blue, and alpha components of color.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_point(
    &self,
    name: *const c_char,
    point: impl CastInto<Ref<QPoint>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QPoint& point).

C++ documentation:

This is an overloaded function.

Sets the uniform variable associated with name in the current context to the x and y coordinates of point.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_point_f(
    &self,
    name: *const c_char,
    point: impl CastInto<Ref<QPointF>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QPointF& point).

C++ documentation:

This is an overloaded function.

Sets the uniform variable associated with name in the current context to the x and y coordinates of point.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_size(
    &self,
    name: *const c_char,
    size: impl CastInto<Ref<QSize>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QSize& size).

C++ documentation:

This is an overloaded function.

Sets the uniform variable associated with name in the current context to the width and height of the given size.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_size_f(
    &self,
    name: *const c_char,
    size: impl CastInto<Ref<QSizeF>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QSizeF& size).

C++ documentation:

This is an overloaded function.

Sets the uniform variable associated with name in the current context to the width and height of the given size.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_matrix4_x4(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QMatrix4X4>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QMatrix4x4& value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to a 4x4 matrix value.

See also setAttributeValue().

pub unsafe fn set_uniform_value_char_q_transform(
    &self,
    name: *const c_char,
    value: impl CastInto<Ref<QTransform>>
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValue(const char* name, const QTransform& value).

C++ documentation:

This is an overloaded function.

Sets the uniform variable called name in the current context to a 3x3 transformation matrix value that is specified as a QTransform value.

To set a QTransform value as a 4x4 matrix in a shader, use setUniformValue(name, QMatrix4x4(value)).

pub unsafe fn set_uniform_value_array_int_float2_int(
    &self,
    location: c_int,
    values: *const c_float,
    count: c_int,
    tuple_size: c_int
)
[src]

Sets the uniform variable array at location in the current context to the count elements of values. Each element has tupleSize components. The tupleSize must be 1, 2, 3, or 4.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(int location, const float* values, int count, int tupleSize).

C++ documentation:

Sets the uniform variable array at location in the current context to the count elements of values. Each element has tupleSize components. The tupleSize must be 1, 2, 3, or 4.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_int_i32_int(
    &self,
    location: c_int,
    values: *const i32,
    count: c_int
)
[src]

Sets the uniform variable array at location in the current context to the count elements of values.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(int location, const GLint* values, int count).

C++ documentation:

Sets the uniform variable array at location in the current context to the count elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_int_u32_int(
    &self,
    location: c_int,
    values: *const u32,
    count: c_int
)
[src]

Sets the uniform variable array at location in the current context to the count elements of values. This overload should be used when setting an array of sampler values.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(int location, const GLuint* values, int count).

C++ documentation:

Sets the uniform variable array at location in the current context to the count elements of values. This overload should be used when setting an array of sampler values.

Note: This function is not aware of unsigned int support in modern OpenGL versions and therefore treats values as a GLint and calls glUniform1iv.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_int_q_vector_2d_int(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector2D>>,
    count: c_int
)
[src]

Sets the uniform variable array at location in the current context to the count 2D vector elements of values.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(int location, const QVector2D* values, int count).

C++ documentation:

Sets the uniform variable array at location in the current context to the count 2D vector elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_int_q_vector_3d_int(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector3D>>,
    count: c_int
)
[src]

Sets the uniform variable array at location in the current context to the count 3D vector elements of values.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(int location, const QVector3D* values, int count).

C++ documentation:

Sets the uniform variable array at location in the current context to the count 3D vector elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_int_q_vector_4d_int(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QVector4D>>,
    count: c_int
)
[src]

Sets the uniform variable array at location in the current context to the count 4D vector elements of values.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(int location, const QVector4D* values, int count).

C++ documentation:

Sets the uniform variable array at location in the current context to the count 4D vector elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_int_q_matrix4_x4_int(
    &self,
    location: c_int,
    values: impl CastInto<Ptr<QMatrix4X4>>,
    count: c_int
)
[src]

Sets the uniform variable array at location in the current context to the count 4x4 matrix elements of values.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(int location, const QMatrix4x4* values, int count).

C++ documentation:

Sets the uniform variable array at location in the current context to the count 4x4 matrix elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_char_float2_int(
    &self,
    name: *const c_char,
    values: *const c_float,
    count: c_int,
    tuple_size: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(const char* name, const float* values, int count, int tupleSize).

C++ documentation:

This is an overloaded function.

Sets the uniform variable array called name in the current context to the count elements of values. Each element has tupleSize components. The tupleSize must be 1, 2, 3, or 4.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_char_i32_int(
    &self,
    name: *const c_char,
    values: *const i32,
    count: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(const char* name, const GLint* values, int count).

C++ documentation:

This is an overloaded function.

Sets the uniform variable array called name in the current context to the count elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_char_u32_int(
    &self,
    name: *const c_char,
    values: *const u32,
    count: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(const char* name, const GLuint* values, int count).

C++ documentation:

This is an overloaded function.

Sets the uniform variable array called name in the current context to the count elements of values. This overload should be used when setting an array of sampler values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_char_q_vector_2d_int(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector2D>>,
    count: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(const char* name, const QVector2D* values, int count).

C++ documentation:

This is an overloaded function.

Sets the uniform variable array called name in the current context to the count 2D vector elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_char_q_vector_3d_int(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector3D>>,
    count: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(const char* name, const QVector3D* values, int count).

C++ documentation:

This is an overloaded function.

Sets the uniform variable array called name in the current context to the count 3D vector elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_char_q_vector_4d_int(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QVector4D>>,
    count: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(const char* name, const QVector4D* values, int count).

C++ documentation:

This is an overloaded function.

Sets the uniform variable array called name in the current context to the count 4D vector elements of values.

See also setAttributeValue().

pub unsafe fn set_uniform_value_array_char_q_matrix4_x4_int(
    &self,
    name: *const c_char,
    values: impl CastInto<Ptr<QMatrix4X4>>,
    count: c_int
)
[src]

This is an overloaded function.

Calls C++ function: void QOpenGLShaderProgram::setUniformValueArray(const char* name, const QMatrix4x4* values, int count).

C++ documentation:

This is an overloaded function.

Sets the uniform variable array called name in the current context to the count 4x4 matrix elements of values.

See also setAttributeValue().

pub unsafe fn shaders(&self) -> CppBox<QListOfQOpenglShader>[src]

Returns a list of all shaders that have been added to this shader program using addShader().

Calls C++ function: QList<QOpenGLShader*> QOpenGLShaderProgram::shaders() const.

C++ documentation:

Returns a list of all shaders that have been added to this shader program using addShader().

See also addShader() and removeShader().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QOpenGLShaderProgram::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QOpenGLShaderProgram::trUtf8(const char* s, const char* c, int n).

pub unsafe fn uniform_location_char(&self, name: *const c_char) -> c_int[src]

Returns the location of the uniform variable name within this shader program's parameter list. Returns -1 if name is not a valid uniform variable for this shader program.

Calls C++ function: int QOpenGLShaderProgram::uniformLocation(const char* name) const.

C++ documentation:

Returns the location of the uniform variable name within this shader program's parameter list. Returns -1 if name is not a valid uniform variable for this shader program.

See also attributeLocation().

pub unsafe fn uniform_location_q_byte_array(
    &self,
    name: impl CastInto<Ref<QByteArray>>
) -> c_int
[src]

This is an overloaded function.

Calls C++ function: int QOpenGLShaderProgram::uniformLocation(const QByteArray& name) const.

C++ documentation:

This is an overloaded function.

Returns the location of the uniform variable name within this shader program's parameter list. Returns -1 if name is not a valid uniform variable for this shader program.

See also attributeLocation().

pub unsafe fn uniform_location_q_string(
    &self,
    name: impl CastInto<Ref<QString>>
) -> c_int
[src]

This is an overloaded function.

Calls C++ function: int QOpenGLShaderProgram::uniformLocation(const QString& name) const.

C++ documentation:

This is an overloaded function.

Returns the location of the uniform variable name within this shader program's parameter list. Returns -1 if name is not a valid uniform variable for this shader program.

See also attributeLocation().

Trait Implementations

impl CppDeletable for QOpenGLShaderProgram[src]

unsafe fn delete(&self)[src]

Deletes this shader program.

Calls C++ function: virtual [destructor] void QOpenGLShaderProgram::~QOpenGLShaderProgram().

C++ documentation:

Deletes this shader program.

impl Deref for QOpenGLShaderProgram[src]

type Target = QObject

The resulting type after dereferencing.

fn deref(&self) -> &QObject[src]

Calls C++ function: QObject* static_cast<QObject*>(QOpenGLShaderProgram* ptr).

impl DynamicCast<QOpenGLShaderProgram> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QOpenGLShaderProgram>[src]

Calls C++ function: QOpenGLShaderProgram* dynamic_cast<QOpenGLShaderProgram*>(QObject* ptr).

impl StaticDowncast<QOpenGLShaderProgram> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QOpenGLShaderProgram>[src]

Calls C++ function: QOpenGLShaderProgram* static_cast<QOpenGLShaderProgram*>(QObject* ptr).

impl StaticUpcast<QObject> for QOpenGLShaderProgram[src]

unsafe fn static_upcast(ptr: Ptr<QOpenGLShaderProgram>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QOpenGLShaderProgram* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.