svn merge ^/trunk/blender -r41226:41227 .
[blender.git] / source / gameengine / VideoTexture / FilterBase.h
index c530e385ada621502dd7ddbd101998e17c2e9ab4..e83d980ebbfba61bdc801f7f38add63dfb62c1f6 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id$
 -----------------------------------------------------------------------------
 This source file is part of VideoTexture library
 
@@ -20,6 +19,10 @@ http://www.gnu.org/copyleft/lesser.txt.
 -----------------------------------------------------------------------------
 */
 
+/** \file FilterBase.h
+ *  \ingroup bgevideotex
+ */
 #if !defined FILTERBASE_H
 #define FILTERBASE_H
 
@@ -29,6 +32,12 @@ http://www.gnu.org/copyleft/lesser.txt.
 
 #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;