API Documentation
Static Public Member Functions | List of all members
nkGraphics::PrimitiveTopologyUtils Class Referencefinal

Offers utility to work with the associated enumeration. More...

Static Public Member Functions

static nkMemory::StringView toString (PRIMITIVE_TOPOLOGY value)
 

Detailed Description

Offers utility to work with the associated enumeration.

Member Function Documentation

◆ toString()

static nkMemory::StringView nkGraphics::PrimitiveTopologyUtils::toString ( PRIMITIVE_TOPOLOGY  value)
static

Converts an enumeration value into a string.

Parameters
valueThe value to convert.
Returns
The conversion of the enum into a string as a raw translation, for instance PRIMITIVE_TOPOLOGY::POINTLIST -> "POINTLIST". If the enumeration value is unknown, returns "UNKNOWN".

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