Magnum::Shaders::TransformationProjectionUniform3D struct new in Git master

Combined 3D projection and transformation uniform common for all shaders.

Used by FlatGL, DistanceFieldVectorGL, VectorGL and VertexColorGL that don't need to have a separate projection matrix supplied.

Constructors, destructors, conversion operators

TransformationProjectionUniform3D(DefaultInitT = DefaultInit) explicit constexpr noexcept
Construct with default parameters.
TransformationProjectionUniform3D(NoInitT) explicit noexcept
Construct without initializing the contents.

Public variables

Matrix4 transformationProjectionMatrix
Transformation and projection matrix.

Convenience setters

Provided to allow the use of method chaining for populating a structure in a single expression, otherwise equivalent to accessing the fields directly. Also guaranteed to provide backwards compatibility when packing of the actual fields changes.

auto setTransformationProjectionMatrix(const Matrix4& matrix) -> TransformationProjectionUniform3D&
Set the transformationProjectionMatrix field.

Function documentation

TransformationProjectionUniform3D& Magnum::Shaders::TransformationProjectionUniform3D::setTransformationProjectionMatrix(const Matrix4& matrix)

Set the transformationProjectionMatrix field.

Returns Reference to self (for method chaining)

Variable documentation

Matrix4 Magnum::Shaders::TransformationProjectionUniform3D::transformationProjectionMatrix

Transformation and projection matrix.

Default value is an identity matrix.

If FlatGL::Flag::InstancedTransformation is enabled, the per-instance transformation coming from the FlatGL::TransformationMatrix attribute is applied first, before this one.