Rendering abstraction progress

This commit is contained in:
Antoine Pilote
2021-07-11 23:59:37 -04:00
parent 53564d4997
commit c2ce3c9cb9
14 changed files with 77 additions and 182 deletions

View File

@@ -64,6 +64,11 @@ namespace Nuake {
sRendererAPI->VertexAttribPointer(index, size, type, normalized, stride, pointer);
}
void RenderCommand::DrawElements(const RendererEnum mode, const int count, const RendererEnum type, const void* indices)
{
sRendererAPI->DrawElements(mode, count, type, indices);
}
void RenderCommand::DrawArrays(int first, int count)
{
sRendererAPI->DrawArrays(first, count);