Python API: warn that the bgl module is deprecated in the docs

This was already mentioned in the release notes but not the API docs.

Ref T80730
This commit is contained in:
Brecht Van Lommel 2022-05-19 21:10:17 +02:00
parent bc6965cb98
commit 1a627d528c
Notes: blender-bot 2023-02-14 18:48:56 +01:00
Referenced by issue #98298, Regression: Attribute capture yields broken results
Referenced by issue blender/blender-addons#80730, BGL deprecation
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,12 @@ OpenGL Wrapper (bgl)
.. module:: bgl
.. warning::
This module is deprecated and will be removed in a future release,
when OpenGL is replaced by Metal and Vulkan.
Use the graphics API independent :mod:`gpu` module instead.
This module wraps OpenGL constants and functions, making them available from
within Blender Python.