|
Blender V4.3
|
#include <Python.h>#include "GPU_index_buffer.hh"#include "MEM_guardedalloc.h"#include "../generic/py_capi_utils.hh"#include "../generic/python_compat.hh"#include "gpu_py.hh"#include "gpu_py_element.hh"Go to the source code of this file.
Functions | |
Public API | |
| PyObject * | BPyGPUIndexBuf_CreatePyObject (blender::gpu::IndexBuf *elem) |
IndexBuf Type | |
| PyTypeObject | BPyGPUIndexBuf_Type |
| static PyObject * | pygpu_IndexBuf__tp_new (PyTypeObject *, PyObject *args, PyObject *kwds) |
| static void | pygpu_IndexBuf__tp_dealloc (BPyGPUIndexBuf *self) |
| PyDoc_STRVAR (pygpu_IndexBuf__tp_doc, ".. class:: GPUIndexBuf(type, seq)\n" "\n" " Contains an index buffer.\n" "\n" " :arg type: The primitive type this index buffer is composed of.\n" " Possible values are [``POINTS``, ``LINES``, ``TRIS``, ``LINES_ADJ``, ``TRIS_ADJ``].\n" " :type type: str\n" " :arg seq: Indices this index buffer will contain.\n" " Whether a 1D or 2D sequence is required depends on the type.\n" " Optionally the sequence can support the buffer protocol.\n" " :type seq: Buffer | Sequence[int] | Sequence[Sequence[int]]\n") | |
bpygpu_ for local API.BPyGPU for public API. Definition in file gpu_py_element.cc.
| PyObject * BPyGPUIndexBuf_CreatePyObject | ( | blender::gpu::IndexBuf * | elem | ) |
Definition at line 251 of file gpu_py_element.cc.
References BPyGPUIndexBuf_Type, and self.
Referenced by pygpu_IndexBuf__tp_new().
| PyDoc_STRVAR | ( | pygpu_IndexBuf__tp_doc | , |
| ".. class:: GPUIndexBuf(type, seq)\n" "\n" " Contains an index buffer.\n" "\n" " :arg type: The primitive type this index buffer is composed of.\n" " Possible values are .\n" " :type type: str\n" " :arg seq: Indices this index buffer will contain.\n" " Whether a 1D or 2D sequence is required depends on the type.\n" " Optionally the sequence can support the buffer protocol.\n" " :type seq: Buffer | Sequence | Sequence]\n" | [``POINTS``, ``LINES``, ``TRIS``, ``LINES_ADJ``, ``TRIS_ADJ``][int][Sequence[int] ) |
|
static |
Definition at line 173 of file gpu_py_element.cc.
References GPU_indexbuf_discard(), and self.
|
static |
Definition at line 28 of file gpu_py_element.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, bpygpu_primtype_items, BPyGPUIndexBuf_CreatePyObject(), GPUIndexBufBuilder::data, GPU_indexbuf_add_generic_vert(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_indexbuf_primitive_len(), GPU_PRIM_NONE, MEM_freeN(), PY_ARG_PARSER_HEAD_COMPAT, PyC_AsArray_FAST(), PyC_Long_AsU32(), PyC_ParseStringEnum(), PyC_StructFmt_type_from_str(), PyC_StructFmt_type_is_float_any(), and PyC_StringEnum::value_found.
| PyTypeObject BPyGPUIndexBuf_Type |
Definition at line 193 of file gpu_py_element.cc.
Referenced by bpygpu_types_init(), BPyGPUIndexBuf_CreatePyObject(), and pygpu_batch__tp_new().