|
CeresEngine 0.2.0
A game development framework
|
Primitive topology enumeration. More...
#include <CeresEngine/Mesh/PrimitiveTopology.hpp>
Public Types | |
| enum | : UnderlyingType { Points , Lines , LineStrip , LineLoop , LineListAdjacency , LineStripAdjacency , Triangles , TriangleStrip , TriangleFan , TriangleListAdjacency , TriangleStripAdjacency , Patches } |
| using | RawType = decltype(raw) |
Public Types inherited from CeresEngine::StructEnum< PrimitiveTopology > | |
| using | UnderlyingType = UInt32 |
| using | Self = PrimitiveTopology |
Public Member Functions | |
| constexpr | PrimitiveTopology ()=default |
| constexpr | PrimitiveTopology (RawType raw) |
| constexpr | PrimitiveTopology (UnderlyingType raw) |
| StringView | toString () const noexcept |
Gets a string representation of PrimitiveTopology. | |
| UInt32 | getVertexCount () const noexcept |
| Gets the number of vertices in a single primitive. | |
Public Member Functions inherited from CeresEngine::StructEnum< PrimitiveTopology > | |
| operator UnderlyingType () const noexcept | |
| Converts the enum into it's underlying type. | |
| void | toString (std::ostream &stream) const noexcept |
Writes a string representation of the ShaderType to the given stream. | |
Static Public Member Functions | |
| static Optional< PrimitiveTopology > | fromString (StringView string) noexcept |
Creates a new PrimitiveTopology from a string representation. | |
Static Public Member Functions inherited from CeresEngine::StructEnum< PrimitiveTopology > | |
| static Self | fromRawUnderlying (UnderlyingType underlying) noexcept |
Creates a new Self from it's underlying numeric representation. | |
Public Attributes | |
| enum CeresEngine::PrimitiveTopology:: { ... } | raw |
Static Public Attributes | |
| static const constexpr auto | values |
Primitive topology enumeration.
|
constexprdefault |
|
inlineexplicitconstexpr |
|
staticnoexcept |
Creates a new PrimitiveTopology from a string representation.
If the string value is invalid, an empty optional is returned.
|
noexcept |
Gets the number of vertices in a single primitive.
|
noexcept |
Gets a string representation of PrimitiveTopology.
| enum { ... } CeresEngine::PrimitiveTopology::raw |