Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_element.c
| Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | |||||
| PyDoc_STRVAR(pygpu_IndexBuf__tp_doc, | PyDoc_STRVAR(pygpu_IndexBuf__tp_doc, | ||||
| ".. class:: GPUIndexBuf(type, seq)\n" | ".. class:: GPUIndexBuf(type, seq)\n" | ||||
| "\n" | "\n" | ||||
| " Contains an index buffer.\n" | " Contains an index buffer.\n" | ||||
| "\n" | "\n" | ||||
| " :arg type: The primitive type this index buffer is composed of.\n" | " :arg type: The primitive type this index buffer is composed of.\n" | ||||
| " Possible values are `POINTS`, `LINES`, `TRIS` and `LINE_STRIP_ADJ`.\n" | " Possible values are `POINTS`, `LINES`, `TRIS` and `LINE_STRIP_ADJ`.\n" | ||||
| " :type type: str\n" | " :type type: str\n" | ||||
| " :param seq: Indices this index buffer will contain.\n" | " :arg seq: Indices this index buffer will contain.\n" | ||||
| " Whether a 1D or 2D sequence is required depends on the type.\n" | " Whether a 1D or 2D sequence is required depends on the type.\n" | ||||
| " Optionally the sequence can support the buffer protocol.\n" | " Optionally the sequence can support the buffer protocol.\n" | ||||
| " :type seq: 1D or 2D sequence\n"); | " :type seq: 1D or 2D sequence\n"); | ||||
| PyTypeObject BPyGPUIndexBuf_Type = { | PyTypeObject BPyGPUIndexBuf_Type = { | ||||
| PyVarObject_HEAD_INIT(NULL, 0).tp_name = "GPUIndexBuf", | PyVarObject_HEAD_INIT(NULL, 0).tp_name = "GPUIndexBuf", | ||||
| .tp_basicsize = sizeof(BPyGPUIndexBuf), | .tp_basicsize = sizeof(BPyGPUIndexBuf), | ||||
| .tp_dealloc = (destructor)pygpu_IndexBuf__tp_dealloc, | .tp_dealloc = (destructor)pygpu_IndexBuf__tp_dealloc, | ||||
| .tp_flags = Py_TPFLAGS_DEFAULT, | .tp_flags = Py_TPFLAGS_DEFAULT, | ||||
| Show All 21 Lines | |||||