The Nebula Device 3: CoreGraphics::PrimitiveTopology Class Reference

The Nebula Device 3

CoreGraphics::PrimitiveTopology Class Reference

#include <primitivetopology.h>


Detailed Description

The primitive topology for a draw call.

(C) 2006 Radon Labs GmbH

Public Types

enum  Code
 enumeration

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 Function Documentation

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.

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()).