Campbell Barton
f20dbc293f
Cleanup: blank lines over doxy headers
2019-01-26 21:43:24 +11:00
Jacques Lucke
c8975b0fc7
Py API Docs: GPUVertFormat documentation
2018-11-13 15:25:51 +01:00
Campbell Barton
c750ebe113
PyAPI: remove GPUVertFormat() creation from a list
...
We already have `attr_add` method,
best not have two ways to do the same thing.
See: D3830
2018-10-29 11:08:55 +11:00
Campbell Barton
1d8ba9d618
PyAPI: Make GPUVertFormat() argument optional
2018-10-26 08:06:05 +11:00
Campbell Barton
d592eb510e
Cleanup: naming
2018-10-09 09:25:33 +11:00
Campbell Barton
ee2e30683c
Cleanup: style
2018-10-07 17:49:22 +11:00
Germano Cavalcante
9bd65528e3
GPU Python: optionally init the vertexformat in the vertexbuffer itself.
2018-10-05 17:22:03 -03:00
Germano Cavalcante
550fee8eb6
GPU Python: use _PyArg_ParseTupleAndKeywordsFast.
2018-10-05 14:38:35 -03:00
Jacques Lucke
564d37c4b6
Python API: new GPUVertFormat constructor and vbo.fill_attribute method
...
Reviewer: fclem
Differential Revision: https://developer.blender.org/D3760
2018-10-05 15:10:56 +02:00
Germano Cavalcante
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
Germano Cavalcante
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