svn merge -r 15202:15292 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / gameengine / Ketsji / BL_BlenderShader.h
1
2 #ifndef __BL_GPUSHADER_H__
3 #define __BL_GPUSHADER_H__
4
5 #if 0
6 #include "GPU_material.h"
7 #endif
8
9 #include "MT_Matrix4x4.h"
10 #include "MT_Matrix3x3.h"
11 #include "MT_Tuple2.h"
12 #include "MT_Tuple3.h"
13 #include "MT_Tuple4.h"
14
15 struct Material;
16
17 #define BL_MAX_ATTRIB   16
18
19 /**
20  * BL_BlenderShader
21  *  Blender GPU shader material
22  */
23 class BL_BlenderShader
24 {
25 private:
26 #if 0
27         GPUMaterial             *mGPUMat;
28 #endif
29         bool                    mBound;
30
31 public:
32         BL_BlenderShader(struct Material *ma);
33         virtual ~BL_BlenderShader();
34
35         const bool                      Ok()const;
36         void                            SetProg(bool enable);
37
38         void ApplyShader();
39         void SetTexCoords(class RAS_IRasterizer* ras);
40         int GetAttribNum();
41         void Update(const class KX_MeshSlot & ms, class RAS_IRasterizer* rasty);
42 };
43
44 #endif//__BL_GPUSHADER_H__