$(U VertexArray) is a very simple wrapper around a dynamic array of vertices and a primitives type.
It inherits $(DRAWABLE_LINK), but unlike other drawables it is not transformable.
Define a set of one or more 2D primitives.
VertexArray lines(PrimitiveType.LineStrip, 4); lines[0].position = Vector2f(10, 0); lines[1].position = Vector2f(20, 0); lines[2].position = Vector2f(30, 5); lines[3].position = Vector2f(40, 2); window.draw(lines);
$(VERTEX_LINK)
See Source File
$(U VertexArray) is a very simple wrapper around a dynamic array of vertices and a primitives type.
It inherits $(DRAWABLE_LINK), but unlike other drawables it is not transformable.