Skip to content

Instantly share code, notes, and snippets.

@rcurtis
Created April 27, 2015 14:13
Show Gist options
  • Save rcurtis/4ba9a3b648a25c39fe84 to your computer and use it in GitHub Desktop.
Save rcurtis/4ba9a3b648a25c39fe84 to your computer and use it in GitHub Desktop.
VertexArray _verts = new VertexArray(PrimitiveType.Quads, 4);
_verts.Append(new Vertex(new Vector2f(100, 200), Color.Red));
_verts.Append(new Vertex(new Vector2f(100, 0), Color.Red));
_verts.Append(new Vertex(new Vector2f(200, 100), Color.Red));
_verts.Append(new Vertex(new Vector2f(200, 200), Color.Red));
_window.Draw(_verts);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment