4323ccfa6b
GPU Python API: matrix.load_projection_matrix
...
If the `push_projection` and `pop_projection` functions already exist, there should naturally be a way to load a projection matrix.
2018-09-21 15:07:41 -03:00
08c7733c13
Cleanup: style
2018-09-21 08:11:50 +10: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
Dalai Felinto
425cfdd5be
GPU Python API: shader.uniform_float
...
The existing alternative is to use a buffer and call
uniform_vector_float which is overkill for such a simple operation.
2018-09-20 19:51:06 +00:00
Dalai Felinto
e316e41f84
Typo on pydoc for uniform_int
2018-09-20 19:49:08 +00:00
f0149bc070
gpu.batch module: keep shader reference in batch.
2018-09-20 16:38:43 -03:00
9fb9604c19
gpu.shader module: Do not free builtin shaders.
2018-09-20 15:21:59 -03:00
9c2dc808ce
gpu.shader.builtin module: Add GPU_SHADER_2D_IMAGE.
2018-09-20 13:55:43 -03:00
83d4328ce7
PyDoc: add gpu.shader
...
Also some syntax corrections.
2018-09-15 10:35:03 +10:00
1287965089
GPU module: Initial implementation of the gpu.shader
submodule.
...
Differential Revision: https://developer.blender.org/D3688
2018-09-14 09:46:19 -03:00
76d67b4db4
Merge branch 'master' into blender2.8
2018-09-13 17:08:58 +10:00
cde66d7916
GPUVertBuf.fill: support for objects with buffer interface.
...
Differential Revision: https://developer.blender.org/D3684
2018-09-11 10:03:53 -03:00
9eb1c3f70c
gpu module: close quotation marks in descriptions
2018-09-06 04:43:08 -03:00
5ad36c975f
gpu module: retouching the description of the types.
2018-09-06 04:39:39 -03:00
fa6ed6259c
Cleanup: style
2018-09-06 10:47:46 +10:00
539c140b3e
Correct build errors
2018-09-06 10:47:46 +10: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
9df1e54079
Cleanup: style
2018-07-19 16:06:37 +10:00
8cd7828792
GWN: Port to GPU module: Replace GWN prefix by GPU
2018-07-18 11:49:15 +02:00