split some >120 lines, no functional changes
This commit is contained in:
@@ -145,6 +145,14 @@ PyInit_gpu(void)
|
||||
PyObject_SetAttrString(d, #f, val); \
|
||||
Py_DECREF(val)
|
||||
|
||||
PyDoc_STRVAR(GPU_export_shader_doc,
|
||||
"export_shader(scene, material)\n"
|
||||
"\n"
|
||||
" Returns the GLSL shader that produces the visual effect of material in scene.\n"
|
||||
"\n"
|
||||
" :return: Dictionary defining the shader, uniforms and attributes.\n"
|
||||
" :rtype: Dict"
|
||||
);
|
||||
static PyObject* GPU_export_shader(PyObject* UNUSED(self), PyObject *args, PyObject *kwds)
|
||||
{
|
||||
PyObject* pyscene;
|
||||
@@ -279,11 +287,9 @@ static PyObject* GPU_export_shader(PyObject* UNUSED(self), PyObject *args, PyObj
|
||||
return result;
|
||||
}
|
||||
|
||||
static PyMethodDef meth_export_shader[] = {{ "export_shader", (PyCFunction)GPU_export_shader, METH_VARARGS | METH_KEYWORDS,
|
||||
"export_shader(scene,material)\n\n"
|
||||
"Returns the GLSL shader that produces the visual effect of material in scene.\n\n"
|
||||
":return: Dictionary defining the shader, uniforms and attributes.\n"
|
||||
":rtype: Dict"}};
|
||||
static PyMethodDef meth_export_shader[] = {
|
||||
{"export_shader", (PyCFunction)GPU_export_shader, METH_VARARGS | METH_KEYWORDS, GPU_export_shader_doc}
|
||||
};
|
||||
|
||||
PyObject* GPU_initPython(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user