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 Cavalcante <mano-wii>2021-02-22 14:26:45 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-02-22 14:35:52 +0300
commit086d70e910a09185e220169342367a0c95ade0fc (patch)
treeafbb7111ce365bcd61fd6cd307e34c01accb6b19 /source/blender/python/gpu/gpu_py_api.h
parent78c3caf3c1b87f449837b11c903ddeaf00afe7b9 (diff)
GPU Python: Use 'PyC_ParseStringEnum' to parse items
Currently the GPU module for python has different ways to handle enums. - Organizing items in `PyC_StringEnumItems` arrays and parsing them with `PyC_ParseStringEnum`. - Using dedicated functions for each type of enum (`bpygpu_ParsePrimType`, `pygpu_ParseVertCompType` and `pygpu_ParseVertFetchMode`). Although apparently more efficient (especially `pygpu_ParseVertCompType` which transforms strings into integers for simple comparison), these dedicated functions duplicate functionality, increase the complexity of the code and consequently make it less readable. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D10456
Diffstat (limited to 'source/blender/python/gpu/gpu_py_api.h')
-rw-r--r--source/blender/python/gpu/gpu_py_api.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/python/gpu/gpu_py_api.h b/source/blender/python/gpu/gpu_py_api.h
index fe645d8cd3a..5e399a233aa 100644
--- a/source/blender/python/gpu/gpu_py_api.h
+++ b/source/blender/python/gpu/gpu_py_api.h
@@ -24,8 +24,6 @@
* However, it is currently of little use. */
// #define BPYGPU_USE_GPUOBJ_FREE_METHOD
-int bpygpu_ParsePrimType(PyObject *o, void *p);
-
PyObject *BPyInit_gpu(void);
bool bpygpu_is_init_or_error(void);