Added vertex buffer and drawing functions to primitive.