Render command now uses uint32_t

This commit is contained in:
Antoine Pilote
2023-10-02 01:35:07 -04:00
parent 6426fccde9
commit 3b0a5693eb
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ namespace Nuake {
sRendererAPI->DrawMultiElements(mode, count, type, indices, drawCount);
}
void RenderCommand::DrawElements(const RendererEnum mode, const int count, const RendererEnum type, const void* indices)
void RenderCommand::DrawElements(const RendererEnum mode, const uint32_t count, const RendererEnum type, const void* indices)
{
sRendererAPI->DrawElements(mode, count, type, indices);
}

View File

@@ -30,7 +30,7 @@ namespace Nuake {
static void BindVertexArray(const unsigned int& rendererID);
static void VertexAttribPointer(const unsigned int index, const int size, const RendererEnum type, bool normalized, int stride, const void* pointer);
static void DrawMultiElements(const RendererEnum mode, const int count, const RendererEnum type, const void* const* indices, unsigned int drawCount);
static void DrawElements(const RendererEnum mode, const int count, const RendererEnum type, const void* indices);
static void DrawElements(const RendererEnum mode, const uint32_t count, const RendererEnum type, const void* indices);
static void DrawArrays(int first, int count);
static void DrawLines(int first, int count);