Blender Git Loki

Git Commits -> Revision 2510bd3

Revision 2510bd3 by Germano Cavalcante (master)
April 30, 2021, 13:49 (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: 2510bd3a5f35d14f5e0e098c79a776916d273223
Parent Commit: 04b6296
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021