struct new in Git master
#include <Magnum/Shaders/Generic.h>
TransformationUniform3D 3D transformation uniform common for all shaders
Contains the per-draw transformation matrix used by the MeshVisualizerGL3D and PhongGL shaders that need a separate projection and transformation matrix.
Constructors, destructors, conversion operators
- TransformationUniform3D(DefaultInitT = DefaultInit) explicit constexpr noexcept
- Construct with default parameters.
- TransformationUniform3D(NoInitT) explicit noexcept
- Construct without initializing the contents.
Public variables
- Matrix4 transformationMatrix
- Transformation 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 setTransformationMatrix(const Matrix4& matrix) -> TransformationUniform3D&
- Set the transformationMatrix field.
Function documentation
TransformationUniform3D& Magnum:: Shaders:: TransformationUniform3D:: setTransformationMatrix(const Matrix4& matrix)
Set the transformationMatrix field.
Returns | Reference to self (for method chaining) |
---|
Variable documentation
Matrix4 Magnum:: Shaders:: TransformationUniform3D:: transformationMatrix
Transformation matrix.
Default value is an identity matrix.
If PhongGL::