public void drawTriangles(IndexBuffer3D indexBuffer, int firstIndex = 0, int numTriangles = -1) { // flush sampler state before drawing flushSamplerState(); int count = (numTriangles == -1) ? indexBuffer.numIndices : (numTriangles * 3); GL.BindBuffer(BufferTarget.ElementArrayBuffer, indexBuffer.id); GL.DrawElements(BeginMode.Triangles, count, DrawElementsType.UnsignedInt, firstIndex); }
public void drawTriangles(IndexBuffer3D indexBuffer, int firstIndex = 0, int numTriangles = -1) { throw new NotImplementedException(); }
public void drawTriangles(IndexBuffer3D indexBuffer, int firstIndex = 0, int numTriangles = -1) { // flush sampler state before drawing flushSamplerState(); int count = (numTriangles == -1) ? indexBuffer.numIndices : (numTriangles * 3); GL.BindBuffer(BufferTarget.ElementArrayBuffer, indexBuffer.id); GL.DrawElements(BeginMode.Triangles, count, DrawElementsType.UnsignedInt, firstIndex ); }
public void drawTriangles(IndexBuffer3D indexBuffer, int firstIndex = 0, int numTriangles = -1) { int count = (numTriangles == -1) ? indexBuffer.numIndices : (numTriangles * 3); GL.BindBuffer(BufferTarget.ElementArrayBuffer, indexBuffer.id); GL.DrawElements(BeginMode.Triangles, count, DrawElementsType.UnsignedInt, firstIndex ); }