CPM module to provide a cross platform OpenGL context for batch rendering