WUT
0.1
Wii U Toolchain
Main Page
Modules
Data Structures
Files
File List
Globals
include
gx2
draw.h
Go to the documentation of this file.
1
#pragma once
2
#include <
wut.h
>
3
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
typedef
enum
GX2PrimitiveMode
15
{
16
GX2_PRIMITIVE_MODE_TRIANGLES
= 4,
17
GX2_PRIMITIVE_MODE_TRIANGLE_STRIP
= 6,
18
GX2_PRIMITIVE_MODE_QUADS
= 19,
19
GX2_PRIMITIVE_MODE_QUAD_STRIP
= 20,
20
}
GX2PrimitiveMode
;
21
22
typedef
enum
GX2IndexType
23
{
24
GX2_INDEX_TYPE_U16_LE
= 0,
25
GX2_INDEX_TYPE_U32_LE
= 1,
26
GX2_INDEX_TYPE_U16
= 4,
27
GX2_INDEX_TYPE_U32
= 9,
28
}
GX2IndexType
;
29
30
void
31
GX2SetAttribBuffer
(uint32_t index,
32
uint32_t size,
33
uint32_t stride,
34
void
*buffer);
35
36
void
37
GX2DrawEx
(
GX2PrimitiveMode
mode,
38
uint32_t numVertices,
39
uint32_t offset,
40
uint32_t numInstances);
41
42
void
43
GX2DrawIndexedEx
(
GX2PrimitiveMode
mode,
44
uint32_t numVertices,
45
GX2IndexType
indexType,
46
void
*indices,
47
uint32_t offset,
48
uint32_t numInstances);
49
50
void
51
GX2SetPrimitiveRestartIndex
(uint32_t index);
52
53
#ifdef __cplusplus
54
}
55
#endif
56
GX2_INDEX_TYPE_U32
Definition:
draw.h:27
GX2_INDEX_TYPE_U16_LE
Definition:
draw.h:24
GX2SetPrimitiveRestartIndex
void GX2SetPrimitiveRestartIndex(uint32_t index)
GX2PrimitiveMode
GX2PrimitiveMode
Definition:
draw.h:14
GX2_PRIMITIVE_MODE_TRIANGLE_STRIP
Definition:
draw.h:17
GX2_PRIMITIVE_MODE_QUAD_STRIP
Definition:
draw.h:19
GX2_INDEX_TYPE_U32_LE
Definition:
draw.h:25
GX2IndexType
GX2IndexType
Definition:
draw.h:22
GX2DrawEx
void GX2DrawEx(GX2PrimitiveMode mode, uint32_t numVertices, uint32_t offset, uint32_t numInstances)
GX2_PRIMITIVE_MODE_QUADS
Definition:
draw.h:18
GX2DrawIndexedEx
void GX2DrawIndexedEx(GX2PrimitiveMode mode, uint32_t numVertices, GX2IndexType indexType, void *indices, uint32_t offset, uint32_t numInstances)
wut.h
GX2_PRIMITIVE_MODE_TRIANGLES
Definition:
draw.h:16
GX2SetAttribBuffer
void GX2SetAttribBuffer(uint32_t index, uint32_t size, uint32_t stride, void *buffer)
GX2_INDEX_TYPE_U16
Definition:
draw.h:26
Generated by
1.8.10