public void SetIndices(IntPtr indices, IndexFormat format, int count, int elementOffset) { int elementSizeInBytes = format == IndexFormat.UInt16 ? sizeof(ushort) : sizeof(uint); SetData(indices, count * elementSizeInBytes, elementOffset * elementSizeInBytes); ElementsType = OpenGLESFormats.MapIndexFormat(format); }
public override IndexBuffer CreateIndexBuffer(int sizeInBytes, bool isDynamic, IndexFormat format) { return(new OpenGLESIndexBuffer(isDynamic, OpenGLESFormats.MapIndexFormat(format))); }