![]() |
Rise
The Vieneo Province
|
#include <WindshieldRain11.h>
Classes | |
| struct | Vertex |
| struct | Image |
| struct | Pane |
| struct | Wiper |
Public Types | |
| enum class | DepthLayout { Unified , CockpitAndWorld } |
| using | Vector = DirectX::XMFLOAT3 |
| using | Matrix = DirectX::XMFLOAT4X4 |
Public Member Functions | |
| HRESULT | Initialize (ID3D11Device *device, const std::filesystem::path &shaderDirectory={}) |
| void | Clear () |
| void | SetSimulator (bool value) |
| void | SetGlassCondition (int condition) |
| void | ResetDevice () |
| void | ReleaseTargets () |
| void | AddGlass (int component, const Vertex *vertices, size_t count) |
| void | AddWiper (int component, const Vertex *vertices, size_t count) |
| void | FinishGeometry () |
| void | Update (float elapsed, float rain, const Vector &acceleration, const Vector &relativeWind, const std::vector< Matrix > &transforms, float airDensity, bool wiping, float rainAir=0) |
| HRESULT | Render (ID3D11DeviceContext *context, ID3D11RenderTargetView *target, ID3D11DepthStencilView *depth, const D3D11_VIEWPORT &viewport, const std::vector< Matrix > &world, const Matrix &viewProjection, float opacity=1, DepthLayout depthLayout=DepthLayout::Unified, float cockpitLight=0, ID3D11RenderTargetView *adExclusion=nullptr) |
| size_t | PaneCount () const |
| bool | Wet () const |
| float | Wetness () const |
| const std::string & | Status () const |
Static Public Member Functions | |
| 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) |
Private Member Functions | |
| HRESULT | CreateImage (Image &image, UINT width, UINT height, DXGI_FORMAT format, bool dynamic=false, DXGI_SAMPLE_DESC samples={1, 0}) |
| HRESULT | Upload (ID3D11DeviceContext *context, Pane &pane) |
| HRESULT | PrepareTargets (const D3D11_TEXTURE2D_DESC &description) |
Private Attributes | |
| std::vector< Pane > | panes |
| bool | simulator =false |
| int | glassCondition =127 |
| std::vector< Wiper > | wipers |
| std::vector< Matrix > | previousTransforms |
| std::vector< uint32_t > | filmUpload |
| std::vector< WindshieldRain::Surface::BeadSample > | beadUpload |
| std::vector< WindshieldRain::Surface::WakeSample > | wakeUpload |
| std::vector< float > | distanceUpload |
| Microsoft::WRL::ComPtr< ID3D11Device > | device |
| Microsoft::WRL::ComPtr< ID3DDeviceContextState > | isolated |
| Program11 | water |
| Program11 | waterWithAdMask |
| Program11 | visibilityProgram |
| Program11 | damage |
| Program11 | damageWithAdMask |
| Parameters11 | parameters |
| std::vector< Microsoft::WRL::ComPtr< ID3D11SamplerState > > | samplers |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | unifiedDepth |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | noDepth |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | worldDepth |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | cockpitDepth |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | opaque |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | alpha |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | alphaWithAdMask |
| Image | scene |
| Image | visibility |
| Image | visibilitySamples |
| bool | compactVisibility =true |
| DXGI_FORMAT | visibilityFormat =DXGI_FORMAT_UNKNOWN |
| D3D11_TEXTURE2D_DESC | targetDescription {} |
| std::string | status ="native windshield rain not initialized" |
Friends | |
| struct | WindshieldRain11TestAccess |
Definition at line 11 of file WindshieldRain11.h.
| using Rendering::WindshieldRain11::Matrix = DirectX::XMFLOAT4X4 |
Definition at line 15 of file WindshieldRain11.h.
| using Rendering::WindshieldRain11::Vector = DirectX::XMFLOAT3 |
Definition at line 14 of file WindshieldRain11.h.
|
strong |
| Enumerator | |
|---|---|
| Unified | |
| CockpitAndWorld | |
Definition at line 17 of file WindshieldRain11.h.
Definition at line 108 of file WindshieldRain11.cpp.
| void Rendering::WindshieldRain11::Clear | ( | ) |
Definition at line 75 of file WindshieldRain11.cpp.
|
private |
Definition at line 370 of file WindshieldRain11.cpp.
| void Rendering::WindshieldRain11::FinishGeometry | ( | ) |
Definition at line 144 of file WindshieldRain11.cpp.
| HRESULT Rendering::WindshieldRain11::Initialize | ( | ID3D11Device * | device, |
| const std::filesystem::path & | shaderDirectory = {} ) |
Definition at line 317 of file WindshieldRain11.cpp.
|
inline |
|
private |
Definition at line 382 of file WindshieldRain11.cpp.
|
static |
Definition at line 50 of file WindshieldRain11.cpp.
| void Rendering::WindshieldRain11::ReleaseTargets | ( | ) |
Definition at line 94 of file WindshieldRain11.cpp.
| HRESULT Rendering::WindshieldRain11::Render | ( | ID3D11DeviceContext * | context, |
| ID3D11RenderTargetView * | target, | ||
| ID3D11DepthStencilView * | depth, | ||
| const D3D11_VIEWPORT & | viewport, | ||
| const std::vector< Matrix > & | world, | ||
| const Matrix & | viewProjection, | ||
| float | opacity = 1, | ||
| DepthLayout | depthLayout = DepthLayout::Unified, | ||
| float | cockpitLight = 0, | ||
| ID3D11RenderTargetView * | adExclusion = nullptr ) |
| void Rendering::WindshieldRain11::ResetDevice | ( | ) |
Definition at line 99 of file WindshieldRain11.cpp.
| void Rendering::WindshieldRain11::SetSimulator | ( | bool | value | ) |
Definition at line 79 of file WindshieldRain11.cpp.
|
inline |
Definition at line 40 of file WindshieldRain11.h.
| void Rendering::WindshieldRain11::Update | ( | float | elapsed, |
| float | rain, | ||
| const Vector & | acceleration, | ||
| const Vector & | relativeWind, | ||
| const std::vector< Matrix > & | transforms, | ||
| float | airDensity, | ||
| bool | wiping, | ||
| float | rainAir = 0 ) |
Definition at line 225 of file WindshieldRain11.cpp.
Definition at line 412 of file WindshieldRain11.cpp.
| bool Rendering::WindshieldRain11::Wet | ( | ) | const |
| float Rendering::WindshieldRain11::Wetness | ( | ) | const |
|
friend |
Definition at line 42 of file WindshieldRain11.h.
|
private |
Definition at line 82 of file WindshieldRain11.h.
|
private |
Definition at line 82 of file WindshieldRain11.h.
|
private |
Definition at line 73 of file WindshieldRain11.h.
|
private |
Definition at line 81 of file WindshieldRain11.h.
|
private |
Definition at line 85 of file WindshieldRain11.h.
|
private |
Definition at line 78 of file WindshieldRain11.h.
|
private |
Definition at line 78 of file WindshieldRain11.h.
|
private |
Definition at line 76 of file WindshieldRain11.h.
|
private |
Definition at line 75 of file WindshieldRain11.h.
|
private |
Definition at line 72 of file WindshieldRain11.h.
|
private |
Definition at line 69 of file WindshieldRain11.h.
|
private |
Definition at line 77 of file WindshieldRain11.h.
|
private |
Definition at line 81 of file WindshieldRain11.h.
|
private |
Definition at line 82 of file WindshieldRain11.h.
|
private |
Definition at line 67 of file WindshieldRain11.h.
|
private |
Definition at line 79 of file WindshieldRain11.h.
|
private |
Definition at line 71 of file WindshieldRain11.h.
|
private |
Definition at line 80 of file WindshieldRain11.h.
|
private |
Definition at line 83 of file WindshieldRain11.h.
|
private |
Definition at line 68 of file WindshieldRain11.h.
|
private |
Definition at line 88 of file WindshieldRain11.h.
|
private |
Definition at line 87 of file WindshieldRain11.h.
|
private |
Definition at line 81 of file WindshieldRain11.h.
|
private |
Definition at line 83 of file WindshieldRain11.h.
|
private |
Definition at line 86 of file WindshieldRain11.h.
|
private |
Definition at line 78 of file WindshieldRain11.h.
|
private |
Definition at line 83 of file WindshieldRain11.h.
|
private |
Definition at line 74 of file WindshieldRain11.h.
|
private |
Definition at line 78 of file WindshieldRain11.h.
|
private |
Definition at line 78 of file WindshieldRain11.h.
|
private |
Definition at line 70 of file WindshieldRain11.h.
|
private |
Definition at line 81 of file WindshieldRain11.h.