Nebula
|
#include <primitivetopology.h>
The primitive topology for a draw call.
Public Types | |
enum | Code { InvalidPrimitiveTopology , PointList , LineList , LineStrip , LineListAdjacency , LineStripAdjacency , TriangleList , TriangleStrip , TriangleFan , TriangleListAdjacency , TriangleStripAdjacency , PatchList , NumTopologies = PatchList } |
enumeration More... | |
Static Public Member Functions | |
static Code | FromString (const Util::String &str) |
convert from string | |
static Util::String | ToString (Code code) |
convert to string | |
static SizeT | NumberOfVertices (Code topology, SizeT numPrimitives) |
compute number of vertices/indices given a primitive topology and number of primitives | |
static SizeT | NumberOfPrimitives (Code topology, SizeT numVertices) |
compute number of primitives given a primitive type and number of vertices/indices | |
|
static |
convert from string
|
static |
compute number of primitives given a primitive type and number of vertices/indices
Computes the number of primitives from a given primitive topology and number of vertices (the opposite of ComputeNumberOfVertices()).
|
static |
compute number of vertices/indices given a primitive topology and number of primitives
Computes the number of required vertices for a given primitive topology and number of primitives.