Implemented 2d opengl rendering