LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 /** | 53 /** |
54 * BL_BlenderShader | 54 * BL_BlenderShader |
55 * Blender GPU shader material | 55 * Blender GPU shader material |
56 */ | 56 */ |
57 class BL_BlenderShader | 57 class BL_BlenderShader |
58 { | 58 { |
59 private: | 59 private: |
60 struct Scene *mBlenderScene; | 60 struct Scene *mBlenderScene; |
61 struct Material *mMat; | 61 struct Material *mMat; |
62 int mLightLayer; | 62 int mLightLayer; |
63 » int» » » » mAlphaBlend; | 63 » struct Scene» *mBlenderScene; |
| 64 » struct Material»*mMat; |
| 65 » int» » » » mLightLayer; |
| 66 » int» » » » mBlendMode; |
64 GPUMaterial *mGPUMat; | 67 GPUMaterial *mGPUMat; |
65 | 68 |
66 bool VerifyShader()· | 69 bool VerifyShader()· |
67 { | |
68 return (NULL != mGPUMat); | |
69 } | |
70 | |
71 public: | |
72 BL_BlenderShader(KX_Scene *scene, struct Material *ma, int lightlayer); | |
73 virtual ~BL_BlenderShader(); | |
74 | |
75 bool Ok() | |
76 { | |
77 // same as VerifyShared | |
78 return (NULL != mGPUMat); | |
79 } | |
80 void SetProg(bool enable, double time=0.0, RA
S_IRasterizer* rasty=NULL); | |
81 | |
82 int GetAttribNum(); | |
83 void SetAttribs(class RAS_IRasterizer* ras, const BL_Material *mat); | |
84 void Update(const class RAS_MeshSlot & ms, class RAS_IRasterizer* rasty)
; | |
85 void ReloadMaterial(); | |
86 int GetAlphaBlend(); | |
87 | |
88 bool Equals(BL_BlenderShader *blshader); | |
89 ········ | |
90 ········ | |
91 #ifdef WITH_CXX_GUARDEDALLOC | |
92 MEM_CXX_CLASS_ALLOC_FUNCS("GE:BL_BlenderShader") | |
93 #endif | |
94 }; | |
95 | |
96 #endif /* __BL_BLENDERSHADER_H__ */ | |
LEFT | RIGHT |