Join the python modules `gpu` and `_gpu` into one.
authormano-wii <germano.costa@ig.com.br>
Thu, 6 Sep 2018 00:10:42 +0000 (21:10 -0300)
committermano-wii <germano.costa@ig.com.br>
Thu, 6 Sep 2018 00:15:44 +0000 (21:15 -0300)
commit6d04e48539ce50f0de9cc73a36e7733aee608773
treeff2784a4b1e31773610fedc78a3efda625a23bc6
parentb0602483249d1184f2672cd5d5578955560335b5
Join the python modules `gpu` and `_gpu` into one.

Maybe it's still early to set the new drawing api for python.
But joining these two modules is an initial step.

```
>>> gpu.
        matrix
        select
        types
```
```
>>> gpu.types.GPU
                 Batch(
                 OffScreen(
                 VertBuf(
                 VertFormat(
```
The creation of a new offscreen object is now done by the `GPUOffscreen.__new__` method.

Reviewers: campbellbarton, dfelinto

Reviewed By: campbellbarton, dfelinto

Tags: #bf_blender_2.8

Differential Revision: https://developer.blender.org/D3667
22 files changed:
doc/python_api/examples/gpu.types.GPUOffScreen.py [moved from doc/python_api/examples/gpu.offscreen.1.py with 97% similarity]
doc/python_api/rst/gpu.rst [deleted file]
doc/python_api/sphinx_doc_gen.py
source/blender/python/gpu/CMakeLists.txt
source/blender/python/gpu/gpu_py_api.c
source/blender/python/gpu/gpu_py_api.h
source/blender/python/gpu/gpu_py_batch.c [new file with mode: 0644]
source/blender/python/gpu/gpu_py_batch.h [new file with mode: 0644]
source/blender/python/gpu/gpu_py_matrix.c [moved from source/blender/python/intern/gpu_py_matrix.c with 60% similarity]
source/blender/python/gpu/gpu_py_matrix.h [new file with mode: 0644]
source/blender/python/gpu/gpu_py_offscreen.c [new file with mode: 0644]
source/blender/python/gpu/gpu_py_offscreen.h [new file with mode: 0644]
source/blender/python/gpu/gpu_py_select.c [moved from source/blender/python/intern/gpu_py_select.c with 73% similarity]
source/blender/python/gpu/gpu_py_select.h [moved from source/blender/python/intern/gpu.h with 65% similarity]
source/blender/python/gpu/gpu_py_types.c
source/blender/python/gpu/gpu_py_types.h
source/blender/python/gpu/gpu_py_vertex_buffer.c [new file with mode: 0644]
source/blender/python/gpu/gpu_py_vertex_buffer.h [new file with mode: 0644]
source/blender/python/gpu/gpu_py_vertex_format.c [new file with mode: 0644]
source/blender/python/gpu/gpu_py_vertex_format.h [new file with mode: 0644]
source/blender/python/intern/CMakeLists.txt
source/blender/python/intern/bpy_interface.c