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 16:55:15 +0300
committerJacques Lucke <mail@jlucke.com>2018-11-13 17:25:51 +0300
commit444f1fd4237d68151cb0cb844ad25276102291bd (patch)
treeadf8751b02485f45183163c47d995e67f56f7a55 /source/blender/python/gpu/gpu_py_vertex_buffer.c
parent3f478f4260ef0ea2db27e5008c193dfec3288749 (diff)
Py API Docs: Cleanup
Diffstat (limited to 'source/blender/python/gpu/gpu_py_vertex_buffer.c')
-rw-r--r--source/blender/python/gpu/gpu_py_vertex_buffer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/gpu/gpu_py_vertex_buffer.c b/source/blender/python/gpu/gpu_py_vertex_buffer.c
index 1f888597b34..37357fa115c 100644
--- a/source/blender/python/gpu/gpu_py_vertex_buffer.c
+++ b/source/blender/python/gpu/gpu_py_vertex_buffer.c
@@ -246,7 +246,7 @@ static PyObject *bpygpu_VertBuf_new(PyTypeObject *UNUSED(type), PyObject *args,
}
PyDoc_STRVAR(bpygpu_VertBuf_attr_fill_doc,
-"attr_fill(id, data)\n"
+".. method:: attr_fill(id, data)\n"
"\n"
" Insert data into the buffer for a single attribute.\n"
"\n"
@@ -311,14 +311,14 @@ static void bpygpu_VertBuf_dealloc(BPyGPUVertBuf *self)
}
PyDoc_STRVAR(py_gpu_vertex_buffer_doc,
-"GPUVertBuf(len, format)\n"
+".. class:: GPUVertBuf(len, format)\n"
"\n"
-"Contains a VBO."
+" Contains a VBO."
"\n"
-" :param len: number of elements to allocate\n"
+" :param len: Amount of vertices that will fit into this buffer.\n"
" :type type: `int`\n"
" :param format: Vertex format.\n"
-" :type buf: `gpu.types.GPUVertFormat`\n"
+" :type buf: :class:`gpu.types.GPUVertFormat`\n"
);
PyTypeObject BPyGPUVertBuf_Type = {
PyVarObject_HEAD_INIT(NULL, 0)