Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_batch.c
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
| #include "gpu_py_batch.h" /* own include */ | #include "gpu_py_batch.h" /* own include */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name VertBatch Type | /** \name VertBatch Type | ||||
| * \{ */ | * \{ */ | ||||
| static PyObject *bpygpu_Batch_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds) | PyObject *bpygpu_Batch_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject *kwds) | ||||
| { | { | ||||
| const char *exc_str_missing_arg = "GPUBatch.__new__() missing required argument '%s' (pos %d)"; | const char *exc_str_missing_arg = "GPUBatch.__new__() missing required argument '%s' (pos %d)"; | ||||
| struct { | struct { | ||||
| GPUPrimType type_id; | GPUPrimType type_id; | ||||
| BPyGPUVertBuf *py_vertbuf; | BPyGPUVertBuf *py_vertbuf; | ||||
| BPyGPUIndexBuf *py_indexbuf; | BPyGPUIndexBuf *py_indexbuf; | ||||
| } params = {GPU_PRIM_NONE, NULL, NULL}; | } params = {GPU_PRIM_NONE, NULL, NULL}; | ||||
| ▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines | |||||