28 #ifndef HPL_MATERIAL_WATER_H 29 #define HPL_MATERIAL_WATER_H 31 #include "hpl1/engine/graphics/GPUProgram.h" 32 #include "hpl1/engine/graphics/Material.h" 41 eMaterialPicture aPicture,
cRenderer3D *apRenderer3D);
47 bool UsesType(eMaterialRenderType aType);
49 void Update(
float afTimeStep);
51 iGpuProgram *getGpuProgram(
const eMaterialRenderType aType,
const int alPass,
iLight3D *apLight);
54 bool VertexProgramUsesLight(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
55 bool VertexProgramUsesEye(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
57 eMaterialAlphaMode GetAlphaMode(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
58 eMaterialBlendMode GetBlendMode(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
59 eMaterialChannelMode GetChannelMode(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
61 iTexture *GetTexture(
int alUnit, eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
62 eMaterialBlendMode GetTextureBlend(
int alUnit, eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
64 int GetNumOfPasses(eMaterialRenderType aType,
iLight3D *apLight) {
return 1; }
66 iGpuProgram *getRefractionProgram() {
return _refractProgram; }
67 bool GetRefractionUsesDiffuse() {
return true; }
68 eMaterialTexture GetRefractionDiffuseTexture() {
return eMaterialTexture_Specular; }
69 bool GetRefractionUsesEye() {
return true; }
70 bool GetRefractionSkipsStandardTrans() {
return true; }
71 bool GetRefractionUsesTime() {
return true; }
79 bool NextPass(eMaterialRenderType aType) {
return false; }
81 eMaterialType
GetType(eMaterialRenderType aType) {
return eMaterialType_Diffuse; }
82 void EditVertexes(eMaterialRenderType aType,
iCamera *apCam,
iLight *pLight,
95 bool IsCorrect(
tString asName) {
102 eMaterialPicture aPicture,
cRenderer3D *apRenderer3D) {
104 apImageManager, apTextureManager, apRenderer,
105 apProgramManager, aPicture, apRenderer3D));
111 #endif // HPL_MATERIAL_WATER_H
Definition: Material.h:390
static tString ToLowerCase(tString aString)
Definition: Light3D.h:117
Definition: GpuProgramManager.h:39
Definition: Material.h:181
void EndRendering(eMaterialRenderType aType)
Definition: Material_Water.h:77
eMaterialType GetType(eMaterialRenderType aType)
Definition: Material_Water.h:81
Definition: Renderer2D.h:79
Definition: Renderer3D.h:139
Definition: TextureManager.h:47
bool HasMultiplePasses(eMaterialRenderType aType)
Definition: Material_Water.h:80
Definition: ImageManager.h:48
bool NextPass(eMaterialRenderType aType)
Definition: Material_Water.h:79
Definition: Material.h:203
bool StartRendering(eMaterialRenderType aType, iCamera *apCam, iLight *pLight)
Definition: Material_Water.h:76
Definition: LowLevelGraphics.h:200
Definition: Material_Water.h:36
tVtxBatchFlag GetBatchFlags(eMaterialRenderType aType)
Definition: Material_Water.h:78
Definition: GPUProgram.h:62
Definition: Material_Water.h:93