From 3b0a5693eb563c7aaac8488227e707f1eae2e3ac Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Mon, 2 Oct 2023 01:35:07 -0400 Subject: [PATCH] Render command now uses uint32_t --- Nuake/src/Rendering/RenderCommand.cpp | 2 +- Nuake/src/Rendering/RenderCommand.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nuake/src/Rendering/RenderCommand.cpp b/Nuake/src/Rendering/RenderCommand.cpp index a2735fc9..ca53213b 100644 --- a/Nuake/src/Rendering/RenderCommand.cpp +++ b/Nuake/src/Rendering/RenderCommand.cpp @@ -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); } diff --git a/Nuake/src/Rendering/RenderCommand.h b/Nuake/src/Rendering/RenderCommand.h index e060d617..06b88f45 100644 --- a/Nuake/src/Rendering/RenderCommand.h +++ b/Nuake/src/Rendering/RenderCommand.h @@ -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);