示例#1
0
 public void DrawTriangles(int indexOffsetInBytes, int numberOfIndicesToRender)
 {
     Shader.BindVertexDeclaration();
     GLCore.DrawElements(BeginMode.Triangles, numberOfIndicesToRender, DrawElementsType.UnsignedShort, (IntPtr)indexOffsetInBytes);
 }
示例#2
0
 public static void DrawElements(BeginMode mode, int count, DrawElementsType type)
 {
     GLCore.DrawElements(mode, count, type, IntPtr.Zero);
 }