Beispiel #1
0
 public void DrawElements(PrimitivesType mode, int count, IndiceType type, IntPtr indices)
 {
     if (count < 0)
     {
         throw new Exception("Invalid element count");
     }
     DrawElements(mode, new IntPtr(count), type, indices);
 }
Beispiel #2
0
 static Mesh()
 {
     if (typeof(IndexType) == typeof(ushort))
     {
         indiceType = IndiceType.UnsignedShort;
     }
     else if (typeof(IndexType) == typeof(uint))
     {
         indiceType = IndiceType.UnsignedInt;
     }
 }
Beispiel #3
0
 internal void DrawElements(PrimitivesType mode, IntPtr count, IndiceType type, IntPtr indices)
 {
     _glDrawElements((int)mode, count, (int)type, indices);
 }