Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcantemano-wii <germano.costa@ig.com.br>2020-12-11 07:18:24 +0300
committerGermano Cavalcantemano-wii <germano.costa@ig.com.br>2021-01-11 01:01:53 +0300
commit9db3d1951da15254efbbcf028176facb78118ec1 (patch)
tree2cdc94f9143d3df00f2541263cb25369dff2679f /source/blender/python/gpu/gpu_py_types.c
parent1d3b92bdeabc4a556372603c548155fad1e87be0 (diff)
Fix typo; Documentation; Expose layer for framebuffer attachament; Add framebuffer viewport setter; Remove framebuffer restore; Expose framebuffer push/pop stack API; Remove blend modes; Remove depth_range_set; Implement GPU_face_culling, GPU_front_facing, GPU_point_size, GPU_line_width, GPU_viewport, GPU_color_mask and GPU_depth_mask
Diffstat (limited to 'source/blender/python/gpu/gpu_py_types.c')
-rw-r--r--source/blender/python/gpu/gpu_py_types.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/gpu/gpu_py_types.c b/source/blender/python/gpu/gpu_py_types.c
index 165af47b4b8..e247f019870 100644
--- a/source/blender/python/gpu/gpu_py_types.c
+++ b/source/blender/python/gpu/gpu_py_types.c
@@ -61,6 +61,12 @@ PyObject *BPyInit_gpu_types(void)
if (PyType_Ready(&BPyGPUShader_Type) < 0) {
return NULL;
}
+ if (PyType_Ready(&BPyGPUTexture_Type) < 0) {
+ return NULL;
+ }
+ if (PyType_Ready(&BPyGPUFrameBuffer_Type) < 0) {
+ return NULL;
+ }
#define MODULE_TYPE_ADD(s, t) \
PyModule_AddObject(s, t.tp_name, (PyObject *)&t); \
@@ -72,6 +78,8 @@ PyObject *BPyInit_gpu_types(void)
MODULE_TYPE_ADD(submodule, BPyGPUBatch_Type);
MODULE_TYPE_ADD(submodule, BPyGPUOffScreen_Type);
MODULE_TYPE_ADD(submodule, BPyGPUShader_Type);
+ MODULE_TYPE_ADD(submodule, BPyGPUTexture_Type);
+ MODULE_TYPE_ADD(submodule, BPyGPUFrameBuffer_Type);
#undef MODULE_TYPE_ADD