[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38242] branches/soc-2011-cucumber/source/ gameengine/VideoTexture/blendVideoTex.cpp: Adding the constants SOURCE_ERROR, SOURCE_EMPTY, SOURCE_READY, SOURCE_PLAYING, SOURCE_STOPPED to the video texture module.

Daniel Stokes kupomail at gmail.com
Sat Jul 9 01:21:14 CEST 2011


Revision: 38242
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38242
Author:   kupoman
Date:     2011-07-08 23:21:13 +0000 (Fri, 08 Jul 2011)
Log Message:
-----------
Adding the constants SOURCE_ERROR, SOURCE_EMPTY, SOURCE_READY, SOURCE_PLAYING, SOURCE_STOPPED to the video texture module. Updates to the documentation will follow after a merge with trunk

Modified Paths:
--------------
    branches/soc-2011-cucumber/source/gameengine/VideoTexture/blendVideoTex.cpp

Modified: branches/soc-2011-cucumber/source/gameengine/VideoTexture/blendVideoTex.cpp
===================================================================
--- branches/soc-2011-cucumber/source/gameengine/VideoTexture/blendVideoTex.cpp	2011-07-08 19:58:02 UTC (rev 38241)
+++ branches/soc-2011-cucumber/source/gameengine/VideoTexture/blendVideoTex.cpp	2011-07-08 23:21:13 UTC (rev 38242)
@@ -37,6 +37,7 @@
 //#include "TexPlayerGL.h"
 
 #include "ImageBase.h"
+#include "VideoBase.h"
 #include "FilterBase.h"
 #include "Texture.h"
 
@@ -207,6 +208,11 @@
 
 	Py_INCREF(&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);
+	PyModule_AddIntConstant(m, (char*)"SOURCE_PLAYING", SourcePlaying);
+	PyModule_AddIntConstant(m, (char*)"SOURCE_STOPPED", SourceStopped);
 	
 	// init last error description
 	Exception::m_lastError = "";




More information about the Bf-blender-cvs mailing list