WUT  0.1
Wii U Toolchain
Typedefs | Enumerations | Functions
Draw

Typedefs

typedef enum GX2PrimitiveMode GX2PrimitiveMode
 
typedef enum GX2IndexType GX2IndexType
 

Enumerations

enum  GX2PrimitiveMode { GX2_PRIMITIVE_MODE_TRIANGLES = 4, GX2_PRIMITIVE_MODE_TRIANGLE_STRIP = 6, GX2_PRIMITIVE_MODE_QUADS = 19, GX2_PRIMITIVE_MODE_QUAD_STRIP = 20 }
 
enum  GX2IndexType { GX2_INDEX_TYPE_U16_LE = 0, GX2_INDEX_TYPE_U32_LE = 1, GX2_INDEX_TYPE_U16 = 4, GX2_INDEX_TYPE_U32 = 9 }
 

Functions

void GX2SetAttribBuffer (uint32_t index, uint32_t size, uint32_t stride, void *buffer)
 
void GX2DrawEx (GX2PrimitiveMode mode, uint32_t numVertices, uint32_t offset, uint32_t numInstances)
 
void GX2DrawIndexedEx (GX2PrimitiveMode mode, uint32_t numVertices, GX2IndexType indexType, void *indices, uint32_t offset, uint32_t numInstances)
 
void GX2SetPrimitiveRestartIndex (uint32_t index)
 

Detailed Description

Typedef Documentation

typedef enum GX2IndexType GX2IndexType

Enumeration Type Documentation

Enumerator
GX2_INDEX_TYPE_U16_LE 
GX2_INDEX_TYPE_U32_LE 
GX2_INDEX_TYPE_U16 
GX2_INDEX_TYPE_U32 

Definition at line 22 of file draw.h.

Enumerator
GX2_PRIMITIVE_MODE_TRIANGLES 
GX2_PRIMITIVE_MODE_TRIANGLE_STRIP 
GX2_PRIMITIVE_MODE_QUADS 
GX2_PRIMITIVE_MODE_QUAD_STRIP 

Definition at line 14 of file draw.h.

Function Documentation

void GX2DrawEx ( GX2PrimitiveMode  mode,
uint32_t  numVertices,
uint32_t  offset,
uint32_t  numInstances 
)
void GX2DrawIndexedEx ( GX2PrimitiveMode  mode,
uint32_t  numVertices,
GX2IndexType  indexType,
void *  indices,
uint32_t  offset,
uint32_t  numInstances 
)
void GX2SetAttribBuffer ( uint32_t  index,
uint32_t  size,
uint32_t  stride,
void *  buffer 
)
void GX2SetPrimitiveRestartIndex ( uint32_t  index)