Campbell Barton
f0b5a9da01
Cleanup: style, unused
2018-11-20 08:53:00 +11:00
mano-wii
3f59bdc1bd
PyAPI: GPUOffscreen: Add context manager for the bind method to work with the with statement.
...
Differential Revision: https://developer.blender.org/D3918
2018-11-19 10:16:27 -02:00
Jacques Lucke
dc6ba4f2ec
Py API: fix parameter order in offscreen.draw_view3d
2018-11-13 16:23:31 +01:00
Jacques Lucke
444f1fd423
Py API Docs: Cleanup
2018-11-13 15:25:51 +01:00
Dalai Felinto
49a7bcafd9
gpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrix
...
Technically this is only the view matrix, not model view matrix.
And view layer was missing from the pydoc.
2018-11-09 13:54:38 -02:00
Dalai Felinto
88d621a68f
BKE_id_is_in_gobal_main > BKE_id_is_in_global_main
2018-11-09 10:59:31 -02:00
Jacques Lucke
a145c7dc62
Cleanup: No need to save/restor frame buffer twice
2018-11-06 15:46:07 +01:00
mano-wii
1e647a570d
Python GPU module: replace PyArg_ParseTupleAndKeywords by _PyArg_ParseTupleAndKeywordsFast
...
part of T47811 ("for faster argument parsing").
2018-09-27 00:22:57 -03:00
Dalai Felinto
fb88088203
Preserve the actively bound framebuffer after using gpu.offscreen
...
Otherwise we cannot draw anything after drawing in the offscreen buffer
2018-09-20 21:43:08 +00:00
Campbell Barton
539c140b3e
Correct build errors
2018-09-06 10:47:46 +10:00
mano-wii
6d04e48539
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
2018-09-05 21:15:44 -03:00