Rise
The Vieneo Province
Loading...
Searching...
No Matches
WindshieldRainRenderer.h
Go to the documentation of this file.
1#pragma once
5{
6public:
11 const RiseMath::Vector3& normal,const RiseMath::Vector3& u,const RiseMath::Vector3& v)
12 {return Rendering::WindshieldRain11::ProjectAcceleration(acceleration,inverse,normal,u,v);}
13 void Clear(){renderer.Clear();}
14 void SetSimulator(bool value){renderer.SetSimulator(value);}
15 void SetGlassCondition(int condition){renderer.SetGlassCondition(condition);}
16 void AddGlass(int component,const Vertex* vertices,size_t count){renderer.AddGlass(component,vertices,count);}
17 void AddWiper(int component,const Vertex* vertices,size_t count){renderer.AddWiper(component,vertices,count);}
19 void Update(float elapsed,float rain,const RiseMath::Vector3& acceleration,const RiseMath::Vector3& wind,
20 const std::vector<RiseMath::Matrix>& transforms,float density,bool wiping,float rainAir=0);
43
44 HRESULT Render(Rendering::RenderDevice* device,Rendering::RenderMaterial* material,const std::vector<RiseMath::Matrix>& world,
45 const RiseMath::Matrix& viewProjection,float opacity=1,DepthLayout layout=DepthLayout::Unified,float cockpitLight=0,
46 ID3D11RenderTargetView* adExclusion=nullptr);
48 size_t PaneCount()const{return renderer.PaneCount();}
49 bool Wet()const{return renderer.Wet();}
50 float Wetness()const{return renderer.Wetness();}
51private:
53 Microsoft::WRL::ComPtr<ID3D11Device> nativeDevice;
54};
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
SCRIPT_CONTROL SCRIPT_STATE const void DWORD
HRESULT GetRenderState(DWORD state, DWORD *value) const
HRESULT SetRenderState(DWORD state, DWORD value)
void SetGlassCondition(int condition)
static Matrix ToPhysicsTransform(const Matrix &cockpitToView)
static WindshieldRain::Point ProjectAcceleration(const Vector &acceleration, const Matrix &inverse, const Vector &normal, const Vector &u, const Vector &v)
void AddWiper(int component, const Vertex *vertices, size_t count)
void AddGlass(int component, const Vertex *vertices, size_t count)
static WindshieldRain::Point ProjectAcceleration(const RiseMath::Vector3 &acceleration, const RiseMath::Matrix &inverse, const RiseMath::Vector3 &normal, const RiseMath::Vector3 &u, const RiseMath::Vector3 &v)
HRESULT Render(Rendering::RenderDevice *device, Rendering::RenderMaterial *material, const std::vector< RiseMath::Matrix > &world, const RiseMath::Matrix &viewProjection, float opacity=1, DepthLayout layout=DepthLayout::Unified, float cockpitLight=0, ID3D11RenderTargetView *adExclusion=nullptr)
void AddGlass(int component, const Vertex *vertices, size_t count)
Rendering::WindshieldRain11::Vertex Vertex
void SetGlassCondition(int condition)
Rendering::WindshieldRain11::DepthLayout DepthLayout
static RiseMath::Matrix ToPhysicsTransform(const RiseMath::Matrix &value)
Rendering::WindshieldRain11 renderer
void AddWiper(int component, const Vertex *vertices, size_t count)
void Update(float elapsed, float rain, const RiseMath::Vector3 &acceleration, const RiseMath::Vector3 &wind, const std::vector< RiseMath::Matrix > &transforms, float density, bool wiping, float rainAir=0)
Microsoft::WRL::ComPtr< ID3D11Device > nativeDevice
static HRESULT DrawCockpitGlass(Rendering::RenderDevice *device, Draw draw)
constexpr uint32_t EQUAL
constexpr uint32_t GREATER
constexpr uint32_t ALWAYS
constexpr uint32_t LESSEQUAL
constexpr uint32_t STENCILFUNC
constexpr uint32_t STENCILREF
constexpr uint32_t STENCILENABLE
constexpr uint32_t ZFUNC
constexpr uint32_t ZWRITEENABLE
constexpr uint32_t ZENABLE