Py API Docs: Cleanup

This commit is contained in:
2018-11-13 14:55:15 +01:00
parent 3f478f4260
commit 444f1fd423
5 changed files with 82 additions and 91 deletions

View File

@@ -196,20 +196,20 @@ static void bpygpu_IndexBuf_dealloc(BPyGPUIndexBuf *self)
}
PyDoc_STRVAR(py_gpu_element_doc,
"GPUIndexBuf(type, seq)\n"
".. class:: GPUIndexBuf(type, seq)\n"
"\n"
"Contains an index buffer."
" Contains an index buffer. \n"
"\n"
" :param type:\n"
" One of these primitive types: {\n"
" :param type: One of these primitive types: {\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"
" :type type: `str`\n"
" :param seq: Indices this index buffer will contain. \n"
" Whether a 1D or 2D sequence is required depends on the type. \n"
" Optionally the sequence can support the buffer protocol. \n"
" :type seq: 1D or 2D sequence \n"
);
PyTypeObject BPyGPUIndexBuf_Type = {
PyVarObject_HEAD_INIT(NULL, 0)