Rectangle Struct
Basic Rectangle Shape. More...
Declaration
Base struct
| struct | Shape |
|
Struct representing geometric primitives and indices for various shapes. provides immutable, shared access to vertices and indices of the represented geometric shape. More... | |
Public Constructors Index
| Rectangle () | |
Public Member Functions Index
| helios::rendering::mesh::PrimitiveType | primitiveType () const noexcept override |
Description
Creates vertex and index data for a single 2D rectangle.
Uses indices {0, 1, 2, 3, 0} with PrimitiveType::LineStrip to render the rectangle outline.
Definition at line 27 of file Rectangle.ixx.
Public Constructors
Rectangle()
| inline |
Definition at line 29 of file Rectangle.ixx.
Public Member Functions
primitiveType()
| inline nodiscard noexcept virtual |
Returns the intended PrimitiveType for this Shape.
This method returns the intended PrimitiveType for the Shape represented by this instance. This information can be used to properly set up the MeshConfig wrapping this Shape.
- Returns
The intended PrimitiveType of this Shape.
Definition at line 41 of file Rectangle.ixx.
Reference helios::rendering::mesh::LineStrip.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.