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:
authorCampbell Barton <ideasman42@gmail.com>2018-11-14 01:04:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-14 01:05:07 +0300
commit72369c638d936a76ba58c98b4b89626f6ff28f32 (patch)
treeb66a7025c305d8834cd1830cc93b27bfab47faf9 /source/blender/python/gpu/gpu_py_batch.c
parent4a71102309c9c081d96c3e6478212f875879f4bb (diff)
Cleanup: python doc-strings
Indentation & trailing space.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_batch.c')
-rw-r--r--source/blender/python/gpu/gpu_py_batch.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/source/blender/python/gpu/gpu_py_batch.c b/source/blender/python/gpu/gpu_py_batch.c
index 77dcfad2c9f..ffbd2a17e34 100644
--- a/source/blender/python/gpu/gpu_py_batch.c
+++ b/source/blender/python/gpu/gpu_py_batch.c
@@ -132,14 +132,14 @@ static PyObject *bpygpu_Batch_new(PyTypeObject *UNUSED(type), PyObject *args, Py
PyDoc_STRVAR(bpygpu_Batch_vertbuf_add_doc,
".. method:: vertbuf_add(buf)\n"
"\n"
-" Add another vertex buffer to the Batch. \n"
-" It is not possible to add more vertices to the batch using this method. \n"
-" Instead it can be used to add more attributes to the existing vertices. \n"
-" A good use case would be when you have a separate vertex buffer for vertex positions and vertex normals. \n"
-" Current a batch can have at most " STRINGIFY(GPU_BATCH_VBO_MAX_LEN) " vertex buffers. \n"
+" Add another vertex buffer to the Batch.\n"
+" It is not possible to add more vertices to the batch using this method.\n"
+" Instead it can be used to add more attributes to the existing vertices.\n"
+" A good use case would be when you have a separate vertex buffer for vertex positions and vertex normals.\n"
+" Current a batch can have at most " STRINGIFY(GPU_BATCH_VBO_MAX_LEN) " vertex buffers.\n"
"\n"
-" :param buf: The vertex buffer that will be added to the batch. \n"
-" :type buf: :class:`gpu.types.GPUVertBuf` \n"
+" :param buf: The vertex buffer that will be added to the batch.\n"
+" :type buf: :class:`gpu.types.GPUVertBuf`\n"
);
static PyObject *bpygpu_Batch_vertbuf_add(BPyGPUBatch *self, BPyGPUVertBuf *py_buf)
{
@@ -176,12 +176,12 @@ static PyObject *bpygpu_Batch_vertbuf_add(BPyGPUBatch *self, BPyGPUVertBuf *py_b
PyDoc_STRVAR(bpygpu_Batch_program_set_doc,
".. method:: program_set(program)\n"
"\n"
-" Assign a shader to this batch that will be used for drawing when not overwritten later. \n"
-" Note: This method has to be called in the draw context that the batch will be drawn in. \n"
-" This function does not need to be called when you always set the shader when calling `batch.draw`. \n"
+" Assign a shader to this batch that will be used for drawing when not overwritten later.\n"
+" Note: This method has to be called in the draw context that the batch will be drawn in.\n"
+" This function does not need to be called when you always set the shader when calling `batch.draw`.\n"
"\n"
-" :param program: The program/shader the batch will use in future draw calls. \n"
-" :type program: :class:`gpu.types.GPUShader` \n"
+" :param program: The program/shader the batch will use in future draw calls.\n"
+" :type program: :class:`gpu.types.GPUShader`\n"
);
static PyObject *bpygpu_Batch_program_set(BPyGPUBatch *self, BPyGPUShader *py_shader)
{
@@ -222,10 +222,10 @@ static PyObject *bpygpu_Batch_program_set(BPyGPUBatch *self, BPyGPUShader *py_sh
PyDoc_STRVAR(bpygpu_Batch_draw_doc,
".. method:: draw(program=None)\n"
"\n"
-" Run the drawing program with the parameters assigned to the batch. \n"
+" Run the drawing program with the parameters assigned to the batch.\n"
"\n"
-" :param program: Program that performs the drawing operations. \n"
-" If ``None`` is passed, the last program setted to this batch will run. \n"
+" :param program: Program that performs the drawing operations.\n"
+" If ``None`` is passed, the last program setted to this batch will run.\n"
" :type program: :class:`gpu.types.GPUShader`\n"
);
static PyObject *bpygpu_Batch_draw(BPyGPUBatch *self, PyObject *args)
@@ -320,7 +320,7 @@ static void bpygpu_Batch_dealloc(BPyGPUBatch *self)
PyDoc_STRVAR(py_gpu_batch_doc,
".. class:: GPUBatch(type, buf, elem=None)\n"
"\n"
-" Reusable container for drawable geometry. \n"
+" Reusable container for drawable geometry.\n"
"\n"
" :arg type: One of these primitive types: {\n"
" `POINTS`,\n"