O'Reilly logo

The Blender Python API: Precision 3D Modeling and Add-on Development by Chris Conlan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required