diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-16 08:58:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-16 08:58:18 +0400 |
commit | 2fb82920059257fd7ac8e33bfe53de13e7ed53bd (patch) | |
tree | cb8de3a839cb9878d0869d4e436a235346109c16 /source/gameengine/VideoTexture/blendVideoTex.cpp | |
parent | c2a1dcf6218cbd56126a5deb1aeaf212d67e54cb (diff) |
style cleanup
Diffstat (limited to 'source/gameengine/VideoTexture/blendVideoTex.cpp')
-rw-r--r-- | source/gameengine/VideoTexture/blendVideoTex.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/gameengine/VideoTexture/blendVideoTex.cpp b/source/gameengine/VideoTexture/blendVideoTex.cpp index 7d595832ffd..dd9d83c043f 100644 --- a/source/gameengine/VideoTexture/blendVideoTex.cpp +++ b/source/gameengine/VideoTexture/blendVideoTex.cpp @@ -48,10 +48,10 @@ http://www.gnu.org/copyleft/lesser.txt. // get material id -static PyObject * getMaterialID (PyObject *self, PyObject *args) +static PyObject *getMaterialID (PyObject *self, PyObject *args) { // parameters - game object with video texture - PyObject * obj = NULL; + PyObject *obj = NULL; // material name char * matName; @@ -72,13 +72,13 @@ static PyObject * getMaterialID (PyObject *self, PyObject *args) // get last error description -static PyObject * getLastError (PyObject *self, PyObject *args) +static PyObject *getLastError (PyObject *self, PyObject *args) { return PyUnicode_FromString(Exception::m_lastError.c_str()); } // set log file -static PyObject * setLogFile (PyObject *self, PyObject *args) +static PyObject *setLogFile (PyObject *self, PyObject *args) { // get parameters if (!PyArg_ParseTuple(args, "s:setLogFile", &Exception::m_logFile)) @@ -89,10 +89,10 @@ static PyObject * setLogFile (PyObject *self, PyObject *args) // image to numpy array -static PyObject * imageToArray (PyObject * self, PyObject *args) +static PyObject *imageToArray(PyObject *self, PyObject *args) { // parameter is Image object - PyObject * pyImg; + PyObject *pyImg; char *mode = NULL; if (!PyArg_ParseTuple(args, "O|s:imageToArray", &pyImg, &mode) || !pyImageTypes.in(Py_TYPE(pyImg))) { @@ -172,7 +172,7 @@ static struct PyModuleDef VideoTexture_module_def = { PyObject *initVideoTexture(void) { - PyObject * m; + PyObject *m; // initialize GL extensions //bgl::InitExtensions(0); @@ -210,7 +210,7 @@ PyObject *initVideoTexture(void) pyFilterTypes.reg(m); Py_INCREF(&TextureType); - PyModule_AddObject(m, (char*)"Texture", (PyObject*)&TextureType); + PyModule_AddObject(m, (char*)"Texture", (PyObject *)&TextureType); PyModule_AddIntConstant(m, (char*)"SOURCE_ERROR", SourceError); PyModule_AddIntConstant(m, (char*)"SOURCE_EMPTY", SourceEmpty); PyModule_AddIntConstant(m, (char*)"SOURCE_READY", SourceReady); |