gx2: Add some more draw functions.

This commit is contained in:
James Benton 2016-10-09 20:56:16 +01:00
parent a7b9e58c09
commit 29d6e56963
2 changed files with 29 additions and 2 deletions

View File

@ -20,18 +20,42 @@ GX2SetAttribBuffer(uint32_t index,
void void
GX2DrawEx(GX2PrimitiveMode mode, GX2DrawEx(GX2PrimitiveMode mode,
uint32_t numVertices, uint32_t count,
uint32_t offset, uint32_t offset,
uint32_t numInstances); uint32_t numInstances);
void
GX2DrawEx2(GX2PrimitiveMode mode,
uint32_t count,
uint32_t offset,
uint32_t numInstances,
uint32_t baseInstance);
void void
GX2DrawIndexedEx(GX2PrimitiveMode mode, GX2DrawIndexedEx(GX2PrimitiveMode mode,
uint32_t numVertices, uint32_t count,
GX2IndexType indexType, GX2IndexType indexType,
void *indices, void *indices,
uint32_t offset, uint32_t offset,
uint32_t numInstances); 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 void
GX2SetPrimitiveRestartIndex(uint32_t index); GX2SetPrimitiveRestartIndex(uint32_t index);

View File

@ -37,7 +37,10 @@ EXPORT(GX2CopyDisplayList);
// gx2/draw.h // gx2/draw.h
EXPORT(GX2SetAttribBuffer); EXPORT(GX2SetAttribBuffer);
EXPORT(GX2DrawEx); EXPORT(GX2DrawEx);
EXPORT(GX2DrawEx2);
EXPORT(GX2DrawIndexedEx); EXPORT(GX2DrawIndexedEx);
EXPORT(GX2DrawIndexedEx2);
EXPORT(GX2DrawIndexedImmediateEx);
EXPORT(GX2SetPrimitiveRestartIndex); EXPORT(GX2SetPrimitiveRestartIndex);
// gx2/event.h // gx2/event.h