Added a PrimitiveBatch class to render basic primitives (lines and triangles).