2017-07-30 11:00:30 +00:00
|
|
|
#ifndef __URDE_CFLUIDPLANEDOOR_HPP__
|
|
|
|
#define __URDE_CFLUIDPLANEDOOR_HPP__
|
|
|
|
|
2017-08-14 03:55:06 +00:00
|
|
|
#include "CFluidPlane.hpp"
|
|
|
|
#include "Graphics/Shaders/CFluidPlaneShader.hpp"
|
2017-07-30 11:00:30 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2018-05-25 06:39:38 +00:00
|
|
|
class CFluidPlaneDoor final : public CFluidPlane
|
2017-07-30 11:00:30 +00:00
|
|
|
{
|
2017-08-14 03:55:06 +00:00
|
|
|
float xa0_tileSize;
|
|
|
|
int xa4_tileSubdivisions;
|
|
|
|
float xa8_rippleResolution;
|
|
|
|
|
|
|
|
mutable std::vector<CFluidPlaneShader::Vertex> m_verts;
|
|
|
|
mutable std::experimental::optional<CFluidPlaneShader> m_shader;
|
|
|
|
|
|
|
|
CFluidPlaneShader::RenderSetupInfo
|
|
|
|
RenderSetup(const CStateManager& mgr, float alpha, const zeus::CTransform& xf,
|
|
|
|
const zeus::CAABox& aabb, bool noNormals) const;
|
|
|
|
public:
|
|
|
|
CFluidPlaneDoor(CAssetId patternTex1, CAssetId patternTex2, CAssetId colorTex, float tileSize, u32 tileSubdivisions,
|
|
|
|
EFluidType fluidType, float alpha, const CFluidUVMotion& uvMotion);
|
|
|
|
void AddRipple(float mag, TUniqueId rippler, const zeus::CVector3f& center,
|
|
|
|
CScriptWater& water, CStateManager& mgr) {}
|
|
|
|
void AddRipple(float intensity, TUniqueId rippler, const zeus::CVector3f& center,
|
|
|
|
const zeus::CVector3f& velocity, const CScriptWater& water, CStateManager& mgr,
|
|
|
|
const zeus::CVector3f& upVec) {}
|
|
|
|
void AddRipple(const CRipple& ripple, const CScriptWater& water, CStateManager& mgr) {}
|
|
|
|
|
|
|
|
void Render(const CStateManager& mgr, float alpha, const zeus::CAABox& aabb, const zeus::CTransform& xf,
|
2018-05-18 04:16:33 +00:00
|
|
|
const zeus::CTransform& areaXf, bool noNormals, const zeus::CFrustum& frustum,
|
|
|
|
const std::experimental::optional<CRippleManager>& rippleManager, TUniqueId waterId,
|
|
|
|
const bool* gridFlags, u32 gridDimX, u32 gridDimY, const zeus::CVector3f& areaCenter) const;
|
2017-07-30 11:00:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-05-25 06:39:38 +00:00
|
|
|
#endif // __URDE_CFLUIDPLANEDOOR_HPP__
|