Implement cg_draw2D for librocket