Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_select.c
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| static struct PyMethodDef py_select_methods[] = { | static struct PyMethodDef py_select_methods[] = { | ||||
| /* Manage Stack */ | /* Manage Stack */ | ||||
| {"load_id", (PyCFunction)py_select_load_id, METH_O, py_select_load_id_doc}, | {"load_id", (PyCFunction)py_select_load_id, METH_O, py_select_load_id_doc}, | ||||
| {NULL, NULL, 0, NULL}, | {NULL, NULL, 0, NULL}, | ||||
| }; | }; | ||||
| PyDoc_STRVAR(py_select_doc, "This module provides access to selection."); | PyDoc_STRVAR(py_select_doc, "This module provides access to selection."); | ||||
| static PyModuleDef BPyGPU_select_module_def = { | static PyModuleDef py_select_module_def = { | ||||
| PyModuleDef_HEAD_INIT, | PyModuleDef_HEAD_INIT, | ||||
| .m_name = "gpu.select", | .m_name = "gpu.select", | ||||
| .m_doc = py_select_doc, | .m_doc = py_select_doc, | ||||
| .m_methods = py_select_methods, | .m_methods = py_select_methods, | ||||
| }; | }; | ||||
| PyObject *BPyInit_gpu_select(void) | PyObject *bpygpu_select_init(void) | ||||
| { | { | ||||
| PyObject *submodule; | PyObject *submodule; | ||||
| submodule = PyModule_Create(&BPyGPU_select_module_def); | submodule = PyModule_Create(&py_select_module_def); | ||||
| return submodule; | return submodule; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||