Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_element.c
| Show All 39 Lines | |||||
| #include "gpu_py_element.h" /* own include */ | #include "gpu_py_element.h" /* own include */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name IndexBuf Type | /** \name IndexBuf Type | ||||
| * \{ */ | * \{ */ | ||||
| static PyObject *bpygpu_IndexBuf_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds) | PyObject *bpygpu_IndexBuf_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds) | ||||
| { | { | ||||
| const char *error_prefix = "IndexBuf.__new__"; | const char *error_prefix = "IndexBuf.__new__"; | ||||
| bool ok = true; | bool ok = true; | ||||
| struct { | struct { | ||||
| GPUPrimType type_id; | GPUPrimType type_id; | ||||
| PyObject *seq; | PyObject *seq; | ||||
| } params; | } params; | ||||
| ▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines | |||||