mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 17:51:53 +01:00
67 lines
1.4 KiB
C
67 lines
1.4 KiB
C
#pragma once
|
|
#include <wut.h>
|
|
#include "enum.h"
|
|
|
|
/**
|
|
* \defgroup gx2_draw Draw
|
|
* \ingroup gx2
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void
|
|
GX2SetAttribBuffer(uint32_t index,
|
|
uint32_t size,
|
|
uint32_t stride,
|
|
void *buffer);
|
|
|
|
void
|
|
GX2DrawEx(GX2PrimitiveMode mode,
|
|
uint32_t count,
|
|
uint32_t offset,
|
|
uint32_t numInstances);
|
|
|
|
void
|
|
GX2DrawEx2(GX2PrimitiveMode mode,
|
|
uint32_t count,
|
|
uint32_t offset,
|
|
uint32_t numInstances,
|
|
uint32_t baseInstance);
|
|
|
|
void
|
|
GX2DrawIndexedEx(GX2PrimitiveMode mode,
|
|
uint32_t count,
|
|
GX2IndexType indexType,
|
|
void *indices,
|
|
uint32_t offset,
|
|
uint32_t numInstances);
|
|
|
|
void
|
|
GX2DrawIndexedEx2(GX2PrimitiveMode mode,
|
|
uint32_t count,
|
|
GX2IndexType indexType,
|
|
void *indices,
|
|
uint32_t offset,
|
|
uint32_t numInstances,
|
|
uint32_t baseInstance);
|
|
|
|
void
|
|
GX2DrawIndexedImmediateEx(GX2PrimitiveMode mode,
|
|
uint32_t count,
|
|
GX2IndexType indexType,
|
|
void *indices,
|
|
uint32_t offset,
|
|
uint32_t numInstances);
|
|
|
|
void
|
|
GX2SetPrimitiveRestartIndex(uint32_t index);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|