svn merge ^/trunk/blender -r41226:41227 .
[blender.git] / source / gameengine / VideoTexture / FilterBase.h
index 1c9a2b46927e7d6c8a72683128ffe271e42f3eef..e83d980ebbfba61bdc801f7f38add63dfb62c1f6 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id$
 -----------------------------------------------------------------------------
 This source file is part of VideoTexture library
 
@@ -20,15 +19,25 @@ http://www.gnu.org/copyleft/lesser.txt.
 -----------------------------------------------------------------------------
 */
 
+/** \file FilterBase.h
+ *  \ingroup bgevideotex
+ */
 #if !defined FILTERBASE_H
 #define FILTERBASE_H
 
 #include "Common.h"
 
-#include <Python.h>
+#include <PyObjectPlus.h>
 
 #include "PyTypeList.h"
 
+#define VT_C(v,idx)    ((unsigned char*)&v)[idx]
+#define VT_R(v)        ((unsigned char*)&v)[0]
+#define VT_G(v)        ((unsigned char*)&v)[1]
+#define VT_B(v)        ((unsigned char*)&v)[2]
+#define VT_A(v)        ((unsigned char*)&v)[3]
+#define VT_RGBA(v,r,g,b,a)     VT_R(v)=(unsigned char)r, VT_G(v)=(unsigned char)g, VT_B(v)=(unsigned char)b, VT_A(v)=(unsigned char)a
 
 // forward declaration
 class FilterBase;