diff options
author | Germano Cavalcantemano-wii <germano.costa@ig.com.br> | 2020-12-11 07:18:24 +0300 |
---|---|---|
committer | Germano Cavalcantemano-wii <germano.costa@ig.com.br> | 2021-01-11 01:01:53 +0300 |
commit | 9db3d1951da15254efbbcf028176facb78118ec1 (patch) | |
tree | 2cdc94f9143d3df00f2541263cb25369dff2679f /source/blender/python/gpu/gpu_py_api.c | |
parent | 1d3b92bdeabc4a556372603c548155fad1e87be0 (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_api.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_api.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/python/gpu/gpu_py_api.c b/source/blender/python/gpu/gpu_py_api.c index 33130291162..70bf04c0992 100644 --- a/source/blender/python/gpu/gpu_py_api.c +++ b/source/blender/python/gpu/gpu_py_api.c @@ -35,6 +35,7 @@ #include "gpu_py_matrix.h" #include "gpu_py_select.h" +#include "gpu_py_state.h" #include "gpu_py_types.h" #include "gpu_py_api.h" /* own include */ @@ -134,6 +135,12 @@ PyObject *BPyInit_gpu(void) PyModule_AddObject(mod, "shader", (submodule = BPyInit_gpu_shader())); PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); + PyModule_AddObject(mod, "framebuffer", (submodule = BPyInit_gpu_framebuffer())); + PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); + + PyModule_AddObject(mod, "state", (submodule = BPyInit_gpu_state())); + PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); + return mod; } |