Magnum::Shaders::MeshVisualizerGL2D::Configuration class new in Git master

Configuration.

Public functions

auto flags() const -> Flags
Flags.
auto setFlags(Flags flags) -> Configuration&
Set flags.
auto materialCount() const -> UnsignedInt
Material count.
auto setMaterialCount(UnsignedInt materialCount) -> Configuration&
Set material count.
auto drawCount() const -> UnsignedInt
Draw count.
auto setDrawCount(UnsignedInt drawCount) -> Configuration&
Set draw count.

Function documentation

Configuration& Magnum::Shaders::MeshVisualizerGL2D::Configuration::setFlags(Flags flags)

Set flags.

At least one of Flag::Wireframe, Flag::ObjectId, Flag::VertexId, Flag::PrimitiveId or Flag::PrimitiveIdFromVertexId is expected to be enabled. No flags are set by default.

Configuration& Magnum::Shaders::MeshVisualizerGL2D::Configuration::setMaterialCount(UnsignedInt materialCount)

Set material count.

If Flag::UniformBuffers is set, describes size of a MeshVisualizerMaterialUniform buffer bound with bindMaterialBuffer(); as uniform buffers are required to have a statically defined size. The per-draw materials are then specified via MeshVisualizerDrawUniform2D::materialId. Default value is 1.

If Flag::UniformBuffers isn't set, this value is ignored.

Configuration& Magnum::Shaders::MeshVisualizerGL2D::Configuration::setDrawCount(UnsignedInt drawCount)

Set draw count.

If Flag::UniformBuffers is set, describes size of a TransformationProjectionUniform2D / MeshVisualizerDrawUniform2D / TextureTransformationUniform buffer bound with bindTransformationProjectionBuffer(), bindDrawBuffer() and bindTextureTransformationBuffer(); as uniform buffers are required to have a statically defined size. The draw offset is then set via setDrawOffset(). Default value is 1.

If Flag::UniformBuffers isn't set, this value is ignored.