Add glDrawElements
This commit is contained in:
committed by
Matthias Mailänder
parent
f6c1453b5b
commit
9b8895df39
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user