Esempio n. 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);
 }
Esempio n. 2
0
        public void DrawElements(PrimitivesType mode, int count, uint[] indices, int offset)
        {
            if (count < 0)
            {
                throw new Exception("Invalid element count");
            }
            if (count < 0)
            {
                throw new Exception("Invalid offset");
            }

            fixed(uint *pIndices = &indices[0])
            {
                DrawElements(mode, new IntPtr(count), IndiceType.GL_UNSIGNED_INT, new IntPtr(pIndices + offset));
            }
        }
Esempio n. 3
0
 public void DrawElements(PrimitivesType mode, uint[] indices)
 {
     DrawElements(mode, indices.Length, indices, 0);
 }
Esempio n. 4
0
 internal void DrawElements(PrimitivesType mode, IntPtr count, IndiceType type, IntPtr indices)
 {
     _glDrawElements((int)mode, count, (int)type, indices);
 }