From 29d6e5696388572efd95a64f6c1cbebd49ca29c5 Mon Sep 17 00:00:00 2001 From: James Benton Date: Sun, 9 Oct 2016 20:56:16 +0100 Subject: [PATCH] gx2: Add some more draw functions. --- include/gx2/draw.h | 28 ++++++++++++++++++++++++++-- rpl/libgx2/exports.h | 3 +++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/include/gx2/draw.h b/include/gx2/draw.h index c47a354..5281a81 100644 --- a/include/gx2/draw.h +++ b/include/gx2/draw.h @@ -20,18 +20,42 @@ GX2SetAttribBuffer(uint32_t index, void GX2DrawEx(GX2PrimitiveMode mode, - uint32_t numVertices, + 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 numVertices, + 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); diff --git a/rpl/libgx2/exports.h b/rpl/libgx2/exports.h index 22e1ebd..5c8e6bc 100644 --- a/rpl/libgx2/exports.h +++ b/rpl/libgx2/exports.h @@ -37,7 +37,10 @@ EXPORT(GX2CopyDisplayList); // gx2/draw.h EXPORT(GX2SetAttribBuffer); EXPORT(GX2DrawEx); +EXPORT(GX2DrawEx2); EXPORT(GX2DrawIndexedEx); +EXPORT(GX2DrawIndexedEx2); +EXPORT(GX2DrawIndexedImmediateEx); EXPORT(GX2SetPrimitiveRestartIndex); // gx2/event.h