Py API Docs: GPUIndexBuf documentation

This commit is contained in:
2018-11-13 13:33:09 +01:00
parent 4e1057780b
commit 3f478f4260
2 changed files with 11 additions and 10 deletions

View File

@@ -50,9 +50,9 @@ PyDoc_STRVAR(GPU_doc,
" :maxdepth: 1\n" " :maxdepth: 1\n"
"\n" "\n"
" gpu.types.rst\n" " gpu.types.rst\n"
" gpu.shader.rst\n"
" gpu.matrix.rst\n" " gpu.matrix.rst\n"
" gpu.select.rst\n" " gpu.select.rst\n"
" gpu.shader.rst\n"
"\n" "\n"
); );
static struct PyModuleDef GPU_module_def = { static struct PyModuleDef GPU_module_def = {

View File

@@ -198,17 +198,18 @@ static void bpygpu_IndexBuf_dealloc(BPyGPUIndexBuf *self)
PyDoc_STRVAR(py_gpu_element_doc, PyDoc_STRVAR(py_gpu_element_doc,
"GPUIndexBuf(type, seq)\n" "GPUIndexBuf(type, seq)\n"
"\n" "\n"
"Contains a VBO." "Contains an index buffer."
"\n" "\n"
" :param prim_type:\n" " :param type:\n"
" One of these primitive types: {\n" " One of these primitive types: {\n"
" 'POINTS',\n" " `POINTS`,\n"
" 'LINES',\n" " `LINES`,\n"
" 'TRIS',\n" " `TRIS`,\n"
" 'LINE_STRIP_ADJ'}\n" " `LINE_STRIP_ADJ` }\n"
" :type type: `str`\n" " :type type: :class:`str`\n"
" :param seq: Sequence of integers.\n" " :param seq: Indices this index buffer will contain.\n"
" :type buf: `Any 1D or 2D Sequence`\n" " :type buf: 1D or 2D sequence, depending on the type. \n"
" Optionally the sequence can support the buffer protocol. \n"
); );
PyTypeObject BPyGPUIndexBuf_Type = { PyTypeObject BPyGPUIndexBuf_Type = {
PyVarObject_HEAD_INIT(NULL, 0) PyVarObject_HEAD_INIT(NULL, 0)