The bgl module is a wrapper for OpenGL functions commonly used by Blender in the 3D Viewport and Blender Game Engine. OpenGL (Open Graphics Library) is an open source low-level API used in innumerable 3D applications to take advantage of hardware-accelerated computing.
The bgl documentation will seem familiar to those reader already familiar with OpenGL. The bgl module itself is meant to mimic to call structure and frame-by-frame rendering style of OpenGL 2.1.
In reading through the bgl documentation, we notice many advanced concepts like buffer operations, face culling, and rasterization. Fortunately ...