Created
February 8, 2017 08:31
-
-
Save mellinoe/e850f46d084ddd28fa4850de1fc2f2d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void DrawIndexedPrimitives(int count, int startingIndex) | |
{ | |
PreDrawCommand(); | |
DrawElementsType elementsType = ((OpenGLIndexBuffer)IndexBuffer).ElementsType; | |
int indexSize = OpenGLFormats.GetIndexFormatSize(elementsType); | |
GL.DrawElements(_primitiveType, count, elementsType, new IntPtr(startingIndex * indexSize)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment