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:
authormano-wii <germano.costa@ig.com.br>2018-09-06 10:39:39 +0300
committermano-wii <germano.costa@ig.com.br>2018-09-06 10:39:39 +0300
commit5ad36c975f6eb017561e0931c35b46fe2fce1d12 (patch)
treeb075670956bab41f47d2ec33289594a221bdb170 /source/blender/python
parent5ed9dc68529f44c935bf9f774c57974b36e7e2ff (diff)
gpu module: retouching the description of the types.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/gpu/gpu_py_batch.c28
-rw-r--r--source/blender/python/gpu/gpu_py_vertex_buffer.c4
2 files changed, 15 insertions, 17 deletions
diff --git a/source/blender/python/gpu/gpu_py_batch.c b/source/blender/python/gpu/gpu_py_batch.c
index dfc95e2a996..becf8e08591 100644
--- a/source/blender/python/gpu/gpu_py_batch.c
+++ b/source/blender/python/gpu/gpu_py_batch.c
@@ -152,7 +152,6 @@ static PyObject *bpygpu_VertBatch_vertbuf_add(BPyGPUBatch *self, BPyGPUVertBuf *
Py_RETURN_NONE;
}
-/* Currently magic number from Py perspective. */
PyDoc_STRVAR(bpygpu_VertBatch_program_set_builtin_doc,
"TODO"
);
@@ -352,21 +351,20 @@ PyDoc_STRVAR(py_gpu_batch_doc,
"Contains VAOs + VBOs + Shader representing a drawable entity."
"\n"
" :param type: One of these primitive types: {\n"
-" \"GPU_PRIM_POINTS\",\n"
-" \"GPU_PRIM_LINES\",\n"
-" \"GPU_PRIM_TRIS\",\n"
-" \"GPU_PRIM_LINE_STRIP\",\n"
-" \"GPU_PRIM_LINE_LOOP\",\n"
-" \"GPU_PRIM_TRI_STRIP\",\n"
-" \"GPU_PRIM_TRI_FAN\",\n"
-" \"GPU_PRIM_LINES_ADJ\",\n"
-" \"GPU_PRIM_TRIS_ADJ\",\n"
-" \"GPU_PRIM_LINE_STRIP_ADJ\",\n"
-" \"GPU_PRIM_NONE\n"
-" }.\n"
-" :type type: str`\n"
+" \"POINTS\",\n"
+" \"LINES\",\n"
+" \"TRIS\",\n"
+" \"LINE_STRIP\",\n"
+" \"LINE_LOOP\",\n"
+" \"TRI_STRIP\",\n"
+" \"TRI_FAN\",\n"
+" \"LINES_ADJ\",\n"
+" \"TRIS_ADJ\",\n"
+" \"LINE_STRIP_ADJ\",\n"
+" \"NONE}\n"
+" :type type: `str`\n"
" :param buf: Vertex buffer.\n"
-" :type buf: GPUVertBuf`\n"
+" :type buf: :class: `gpu.types.GPUVertBuf`\n"
);
PyTypeObject BPyGPUBatch_Type = {
PyVarObject_HEAD_INIT(NULL, 0)
diff --git a/source/blender/python/gpu/gpu_py_vertex_buffer.c b/source/blender/python/gpu/gpu_py_vertex_buffer.c
index 40963e9551b..923947f6078 100644
--- a/source/blender/python/gpu/gpu_py_vertex_buffer.c
+++ b/source/blender/python/gpu/gpu_py_vertex_buffer.c
@@ -265,9 +265,9 @@ PyDoc_STRVAR(py_gpu_vertex_buffer_doc,
"Contains a VBO."
"\n"
" :param len: number of elements to allocate\n"
-" :type type: int`\n"
+" :type type: `int`\n"
" :param format: Vertex format.\n"
-" :type buf: GPUVertFormat`\n"
+" :type buf: `gpu.types.GPUVertFormat`\n"
);
PyTypeObject BPyGPUVertBuf_Type = {
PyVarObject_HEAD_INIT(NULL, 0)