Beispiel #1
0
    public void Draw(VertexArray va, IndexBuffer ib, Shader shader)
    {
        va.Bind();
        ib.Bind();
        shader.Bind();

        GL.DrawElements(PrimitiveType.Triangles, ib.GetCount(), DrawElementsType.UnsignedInt, IntPtr.Zero);
    }