class
ShapeRendererOptionsShape renderer options.
Contents
- Reference
See ShapeRenderer documentation for more information.
Public types
- enum class RenderMode: UnsignedByte { Wireframe, Solid }
- Shape rendering mode.
Public functions
- auto renderMode() const -> RenderMode constexpr
- Shape rendering mode.
- auto setRenderMode(RenderMode mode) -> ShapeRendererOptions&
- Set shape rendering mode.
- auto color() const -> Color4 constexpr
- Color of rendered shape.
- auto setColor(const Color4& color) -> ShapeRendererOptions&
- Set color of rendered shape.
- auto pointSize() const -> Float constexpr
- Point size.
- auto setPointSize(Float size) -> ShapeRendererOptions&
- Set point size.
Enum documentation
enum class Magnum:: DebugTools:: ShapeRendererOptions:: RenderMode: UnsignedByte
Shape rendering mode.
Enumerators | |
---|---|
Wireframe |
Wireframe rendering |
Solid |
Solid rendering |
Function documentation
ShapeRendererOptions& Magnum:: DebugTools:: ShapeRendererOptions:: setRenderMode(RenderMode mode)
Set shape rendering mode.
Returns | Reference to self (for method chaining) |
---|
Default is RenderMode::
ShapeRendererOptions& Magnum:: DebugTools:: ShapeRendererOptions:: setColor(const Color4& color)
Set color of rendered shape.
Returns | Reference to self (for method chaining) |
---|
Default is 0xffffffff_rgbaf
.
ShapeRendererOptions& Magnum:: DebugTools:: ShapeRendererOptions:: setPointSize(Float size)
Set point size.
Returns | Reference to self (for method chaining) |
---|
Size of rendered crosshairs, representing Shapes::0.25f
.