A framework for OpenGL-based 2D graphics