76 case None:
return "None";
80 n_error(
"IndexType::ToString(): Invalid IndexType code!");
91 if (
"None" == str)
return None;
92 else if (
"Index16" == str)
return Index16;
93 else if (
"Index32" == str)
return Index32;
96 n_error(
"IndexType::FromString(): invalid index type string '%s'!", str.
AsCharPtr());
Data type of vertex indices (16 bit or 32 bit).
Definition indextype.h:18
static IndexType::Code FromString(const Util::String &str)
convert string to index type
Definition indextype.h:89
static SizeT SizeOf(IndexType::Code type)
get byte size of index
Definition indextype.h:42
static Util::String ToString(IndexType::Code type)
convert index type to string
Definition indextype.h:72
static IndexType::Code ToIndexType(const SizeT size)
get size type from size
Definition indextype.h:57
Code
index types enum
Definition indextype.h:22
@ None
Definition indextype.h:23
@ Index32
Definition indextype.h:25
@ Index16
Definition indextype.h:24
void __cdecl n_error(const char *msg,...)
This function is called when a serious situation is encountered which requires abortion of the applic...
Definition debug.cc:138
#define n_assert(exp)
Definition debug.h:50
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
Nebula's universal string class.
Definition string.h:50
const char * AsCharPtr() const
return contents as character pointer
Definition string.h:542
int SizeT
Definition types.h:49