© Chris Conlan 2017

Chris Conlan, The Blender Python API, 10.1007/978-1-4842-2802-9_6

6. The bgl and blf Modules

Chris Conlan

(1)Bethesda, Maryland, USA

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 ...

Get The Blender Python API: Precision 3D Modeling and Add-on Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.