Raytracing: Final cleanup of Luxrender stuff

This commit is contained in:
Yorik van Havre
2013-10-01 18:37:03 -03:00
parent a2a159c40a
commit 28ca4f04b0
13 changed files with 708 additions and 81 deletions

View File

@@ -238,19 +238,6 @@ copyResource(PyObject *self, PyObject *args)
Py_Return;
}
/// rescales a lux matrix
static PyObject *
scaleLuxMatrix(PyObject *self, PyObject *args)
{
float factor;
const char *mat;
if (! PyArg_ParseTuple(args, "sf", &mat, &factor))
return NULL;
std::string result, luxmatrix(mat);
result = LuxTools::rescaleMatrix(luxmatrix, factor);
return Py::new_reference_to(Py::String(result));
}
/* registration table */
struct PyMethodDef Raytracing_methods[] = {
{"writeProjectFile", writeProjectFile, 1},
@@ -262,6 +249,5 @@ struct PyMethodDef Raytracing_methods[] = {
{"writeDataFile", writeDataFile , 1},
{"writeCameraFile", writeCameraFile , 1},
{"copyResource", copyResource , 1},
{"scaleLuxMatrix", scaleLuxMatrix , 1},
{NULL, NULL}
};