BGE 2d-filter, custom shaders now can have depth texture and luminance texture
[blender.git] / source / gameengine / GameLogic / SCA_2DFilterActuator.h
1 #ifndef __SCA_2DFILETRACTUATOR_H__
2 #define __SCA_2DFILETRACTUATOR_H__
3
4 #include "RAS_IRasterizer.h"
5 #include "RAS_IRenderTools.h"
6 #include "SCA_IActuator.h"
7
8
9 class SCA_2DFilterActuator : public SCA_IActuator
10 {
11     Py_Header;
12
13 private:
14         
15         RAS_2DFilterManager::RAS_2DFILTER_MODE m_type;
16         short m_flag;
17         float m_float_arg;
18         int   m_int_arg;
19         short m_texture_flag;
20         STR_String      m_shaderText;
21         RAS_IRasterizer* m_rasterizer;
22         RAS_IRenderTools* m_rendertools;
23
24 public:
25
26     SCA_2DFilterActuator(
27         class SCA_IObject* gameobj,
28         RAS_2DFilterManager::RAS_2DFILTER_MODE type,
29                 short flag,
30                 float float_arg,
31                 int int_arg,
32                 short texture_flag,
33                 RAS_IRasterizer* rasterizer,
34                 RAS_IRenderTools* rendertools,
35         PyTypeObject* T=&Type
36         );
37
38         void    SetShaderText(STR_String text);
39     virtual ~SCA_2DFilterActuator();
40     virtual bool Update();
41
42     virtual CValue* GetReplica();
43     virtual PyObject* _getattr(const STR_String& attr);
44
45 };
46 #endif