Add glDrawElements

This commit is contained in:
Gustas
2023-08-24 14:38:53 +03:00
committed by Matthias Mailänder
parent f6c1453b5b
commit 9b8895df39
5 changed files with 34 additions and 0 deletions

View File

@@ -170,6 +170,13 @@ namespace OpenRA.Platforms.Default
OpenGL.CheckGLError();
}
public void DrawElements(int numIndices, int offset)
{
VerifyThreadAffinity();
OpenGL.glDrawElements(OpenGL.GL_TRIANGLES, numIndices, OpenGL.GL_UNSIGNED_INT, new IntPtr(offset));
OpenGL.CheckGLError();
}
public void Clear()
{
VerifyThreadAffinity();