[Bf-blender-cvs] [5ad36c975f6] blender2.8: gpu module: retouching the description of the types.
mano-wii
noreply at git.blender.org
Thu Sep 6 09:39:47 CEST 2018
Commit: 5ad36c975f6eb017561e0931c35b46fe2fce1d12
Author: mano-wii
Date: Thu Sep 6 04:39:39 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB5ad36c975f6eb017561e0931c35b46fe2fce1d12
gpu module: retouching the description of the types.
===================================================================
M source/blender/python/gpu/gpu_py_batch.c
M source/blender/python/gpu/gpu_py_vertex_buffer.c
===================================================================
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)
More information about the Bf-blender-cvs
mailing list