Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2018-11-13 15:33:09 +0300
committerJacques Lucke <mail@jlucke.com>2018-11-13 17:25:51 +0300
commit3f478f4260ef0ea2db27e5008c193dfec3288749 (patch)
treee11d902bdd34c223fca77f3b5fbe88d0c2cb3602 /source/blender/python/gpu
parent4e1057780b314abea6b2d38849b003e31243cbf8 (diff)
Py API Docs: GPUIndexBuf documentation
Diffstat (limited to 'source/blender/python/gpu')
-rw-r--r--source/blender/python/gpu/gpu_py_api.c2
-rw-r--r--source/blender/python/gpu/gpu_py_element.c19
2 files changed, 11 insertions, 10 deletions
diff --git a/source/blender/python/gpu/gpu_py_api.c b/source/blender/python/gpu/gpu_py_api.c
index 3fad5425a6c..373bce160b7 100644
--- a/source/blender/python/gpu/gpu_py_api.c
+++ b/source/blender/python/gpu/gpu_py_api.c
@@ -50,9 +50,9 @@ PyDoc_STRVAR(GPU_doc,
" :maxdepth: 1\n"
"\n"
" gpu.types.rst\n"
+" gpu.shader.rst\n"
" gpu.matrix.rst\n"
" gpu.select.rst\n"
-" gpu.shader.rst\n"
"\n"
);
static struct PyModuleDef GPU_module_def = {
diff --git a/source/blender/python/gpu/gpu_py_element.c b/source/blender/python/gpu/gpu_py_element.c
index 2462c222146..c85d6dfbe3b 100644
--- a/source/blender/python/gpu/gpu_py_element.c
+++ b/source/blender/python/gpu/gpu_py_element.c
@@ -198,17 +198,18 @@ static void bpygpu_IndexBuf_dealloc(BPyGPUIndexBuf *self)
PyDoc_STRVAR(py_gpu_element_doc,
"GPUIndexBuf(type, seq)\n"
"\n"
-"Contains a VBO."
+"Contains an index buffer."
"\n"
-" :param prim_type:\n"
+" :param type:\n"
" One of these primitive types: {\n"
-" 'POINTS',\n"
-" 'LINES',\n"
-" 'TRIS',\n"
-" 'LINE_STRIP_ADJ'}\n"
-" :type type: `str`\n"
-" :param seq: Sequence of integers.\n"
-" :type buf: `Any 1D or 2D Sequence`\n"
+" `POINTS`,\n"
+" `LINES`,\n"
+" `TRIS`,\n"
+" `LINE_STRIP_ADJ` }\n"
+" :type type: :class:`str`\n"
+" :param seq: Indices this index buffer will contain.\n"
+" :type buf: 1D or 2D sequence, depending on the type. \n"
+" Optionally the sequence can support the buffer protocol. \n"
);
PyTypeObject BPyGPUIndexBuf_Type = {
PyVarObject_HEAD_INIT(NULL, 0)