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