Blender Git Commit Log
Git Commits -> Revision 4b35568
May 1, 2021, 08:12 (GMT) |
Python GPU: Add new methods to port the code templates in the manual This commit adds a new API tha allow to replace the bgl API in the exemples on: https://docs.blender.org/api/current/gpu.html **Overview (New API):** ``` gpu.state: active_framebuffer_get GPUFramebuffer: read_color GPUOffscreen: texture_color ``` Reviewed By: brecht Differential Revision: https://developer.blender.org/D11031 |
Commit Details:
Full Hash: 4b355683ee5903ffb59a0aa2f73bc631174f45c0
Parent Commit: 1376262
Committed By: YimingWu
Lines Changed: +145, -1
5 Modified Paths:
/source/blender/gpu/intern/gpu_framebuffer.cc (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_framebuffer_private.hh (+5, -0) (Diff)
/source/blender/python/gpu/gpu_py_framebuffer.c (+104, -0) (Diff)
/source/blender/python/gpu/gpu_py_offscreen.c (+19, -0) (Diff)
/source/blender/python/gpu/gpu_py_state.c (+16, -0) (Diff)
/source/blender/gpu/intern/gpu_framebuffer_private.hh (+5, -0) (Diff)
/source/blender/python/gpu/gpu_py_framebuffer.c (+104, -0) (Diff)
/source/blender/python/gpu/gpu_py_offscreen.c (+19, -0) (Diff)
/source/blender/python/gpu/gpu_py_state.c (+16, -0) (Diff)