It's similar to QPainter class from Qt. But there are also some optimization tricks for OpenGL.
QPainter