10 #define C3D_DEFAULT_CMDBUF_SIZE 0x40000
void C3D_ImmDrawEnd(void)
Delimits the vertices of a primitive or a group of like primitives.
@ C3D_UNSIGNED_BYTE
Unsigned 8-bit integer.
Definition: base.h:17
@ C3D_UNSIGNED_SHORT
Unsigned 16-bit integer.
Definition: base.h:18
void C3D_DrawArrays(GPU_Primitive_t primitive, int first, int size)
Renders primitives from current vertex array buffer.
C3D_FVec * C3D_FixedAttribGetWritePtr(int id)
Gets the pointer to the fixed attribute vector for the specified attribute index.
static void C3D_ImmDrawRestartPrim(void)
Specifies the end of the previous strip/fan and the beginning of a new one.
Definition: base.h:121
void C3D_BindProgram(shaderProgram_s *program)
Binds a shader program to the current rendering state.
void C3D_ImmDrawBegin(GPU_Primitive_t primitive)
Delimits the vertices of a primitive or a group of like primitives.
void C3D_ImmSendAttrib(float x, float y, float z, float w)
Specifies an immediate attribute.
static void C3D_FixedAttribSet(int id, float x, float y, float z, float w)
Sets fixed attribute vector for the specified attribute index.
Definition: base.h:150
void C3D_DrawElements(GPU_Primitive_t primitive, int count, int type, const void *indices)
Renders primitives from current vertex array buffer in a manually specified order.
void C3D_SetScissor(GPU_SCISSORMODE mode, u32 left, u32 top, u32 right, u32 bottom)
Defines the scissor box.
bool C3D_Init(size_t cmdBufSize)
Initializes citro3d.
float C3D_GetCmdBufUsage(void)
Retrieves the current command buffer usage.
void C3D_Fini(void)
Deinitializes citro3d.
void C3D_SetViewport(u32 x, u32 y, u32 w, u32 h)
Sets the viewport for the current framebuffer.
Configure vertex array buffers.
#define GPUCMD_AddWrite(reg, val)
Basic math library for matrix, vector, and quaternion operations.
#define GPUREG_RESTART_PRIMITIVE
Float vector.
Definition: types.h:52
float x
X-component.
Definition: types.h:61
float z
Z-component.
Definition: types.h:59
float w
W-component.
Definition: types.h:58
float y
Y-component.
Definition: types.h:60