Blender
V3.3
|
#include <Python.h>
#include "GPU_index_buffer.h"
#include "BLI_math.h"
#include "MEM_guardedalloc.h"
#include "../generic/py_capi_utils.h"
#include "gpu_py.h"
#include "gpu_py_element.h"
Go to the source code of this file.
Functions | |
Public API | |
PyObject * | BPyGPUIndexBuf_CreatePyObject (GPUIndexBuf *elem) |
IndexBuf Type | |
PyTypeObject | BPyGPUIndexBuf_Type |
static PyObject * | pygpu_IndexBuf__tp_new (PyTypeObject *UNUSED(type), 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` and `LINE_STRIP_ADJ`.\n" " :type type: str\n" " :param 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: 1D or 2D sequence\n") | |
bpygpu_
for local API.BPyGPU
for public API. Definition in file gpu_py_element.c.
PyObject* BPyGPUIndexBuf_CreatePyObject | ( | GPUIndexBuf * | elem | ) |
Definition at line 202 of file gpu_py_element.c.
References BPyGPUIndexBuf_Type.
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 `POINTS` | , | ||
`LINES` | , | ||
`TRIS` and `LINE_STRIP_ADJ`.\n" " :type type:str\n" " :param 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:1D or 2D sequence\n" | |||
) |
|
static |
Definition at line 169 of file gpu_py_element.c.
References GPU_indexbuf_discard(), and self.
|
static |
Definition at line 27 of file gpu_py_element.c.
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, NULL, 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 187 of file gpu_py_element.c.
Referenced by bpygpu_types_init(), BPyGPUIndexBuf_CreatePyObject(), and pygpu_batch__tp_new().