Nebula
Loading...
Searching...
No Matches
CoreGraphics::PrimitiveTopology Class Reference

#include <primitivetopology.h>

Detailed Description

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
 

Member Enumeration Documentation

◆ Code

enumeration

Enumerator
InvalidPrimitiveTopology 
PointList 
LineList 
LineStrip 
LineListAdjacency 
LineStripAdjacency 
TriangleList 
TriangleStrip 
TriangleFan 
TriangleListAdjacency 
TriangleStripAdjacency 
PatchList 
NumTopologies 

Member Function Documentation

◆ FromString()

PrimitiveTopology::Code CoreGraphics::PrimitiveTopology::FromString ( const Util::String & str)
static

convert from string

◆ NumberOfPrimitives()

SizeT CoreGraphics::PrimitiveTopology::NumberOfPrimitives ( Code topology,
SizeT numVertices )
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()).

◆ NumberOfVertices()

SizeT CoreGraphics::PrimitiveTopology::NumberOfVertices ( Code topology,
SizeT numPrimitives )
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.

◆ ToString()

String CoreGraphics::PrimitiveTopology::ToString ( Code code)
static

convert to string


The documentation for this class was generated from the following files: