b7e1660d40
Cleanup: Use 'pygpu_' prefix in the cpython GPU module
...
`py_` prefix can be confused with the Python's own API's.
2021-02-17 10:38:59 -03:00
dae445d94a
Fix T85573: Building with Python 3.10a5 fails
...
Replace deprecated _PyUnicode_AsString{AndSize} usage.
T83626 still needs to be resolved before 3.10 is usable.
2021-02-13 23:09:55 +11:00
bbd7f94d8a
Cleanup: Python GPU: change prefix 'bpygpu_' to 'py_' in static functions
2020-12-11 16:06:22 -03:00
1b575cbb75
Cleanup: Pydoc strings
2020-10-11 18:19:42 -04:00
efa7aaa97f
Cleanup: use const variables where possible in the Python API
2020-08-20 16:10:13 +10:00
760dbd1cbf
Cleanup: misc spelling fixes
...
T68035 by @luzpaz
2019-08-01 14:02:41 +10:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
f20dbc293f
Cleanup: blank lines over doxy headers
2019-01-26 21:43:24 +11:00
c8975b0fc7
Py API Docs: GPUVertFormat documentation
2018-11-13 15:25:51 +01:00
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
1d8ba9d618
PyAPI: Make GPUVertFormat() argument optional
2018-10-26 08:06:05 +11:00
d592eb510e
Cleanup: naming
2018-10-09 09:25:33 +11:00
ee2e30683c
Cleanup: style
2018-10-07 17:49:22 +11:00
9bd65528e3
GPU Python: optionally init the vertexformat in the vertexbuffer itself.
2018-10-05 17:22:03 -03:00
550fee8eb6
GPU Python: use _PyArg_ParseTupleAndKeywordsFast.
2018-10-05 14:38:35 -03:00
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
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
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