Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
WindshieldRainRenderer.cpp
Go to the documentation of this file.
1
#include "
WindshieldRainRenderer.h
"
2
void
WindshieldRainRenderer::Update
(
float
elapsed,
float
rain,
const
RiseMath::Vector3
& acceleration,
const
RiseMath::Vector3
& wind,
3
const
std::vector<RiseMath::Matrix>& transforms,
float
density,
bool
wiping,
float
rainAir)
4
{
5
std::vector<DirectX::XMFLOAT4X4> native(transforms.begin(),transforms.end());
6
renderer
.
Update
(elapsed,rain,acceleration,wind,native,density,wiping,rainAir);
7
}
8
HRESULT
WindshieldRainRenderer::Render
(
Rendering::RenderDevice
* device,
Rendering::RenderMaterial
*,
const
std::vector<RiseMath::Matrix>& world,
9
const
RiseMath::Matrix
& viewProjection,
float
opacity,
DepthLayout
layout,
float
cockpitLight,ID3D11RenderTargetView* adExclusion)
10
{
11
if
(!device)
return
E_INVALIDARG;
12
if
(
nativeDevice
.Get()!=device->
Native
())
13
{
14
const
HRESULT
hr=
renderer
.
Initialize
(device->
Native
());
if
(FAILED(hr))
return
hr;
nativeDevice
=device->
Native
();
15
}
16
const
auto
target=device->
Draws
().
Capture
();std::vector<DirectX::XMFLOAT4X4> native(world.begin(),world.end());
17
return
renderer
.
Render
(device->
Context
(),target.color.Get(),target.depth.Get(),target.viewport,native,viewProjection,opacity,layout,cockpitLight,adExclusion);
18
}
HRESULT
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
WindshieldRainRenderer.h
Rendering::DrawContext11::Capture
Saved Capture() const
Definition
DrawContext11.cpp:61
Rendering::RenderDevice
Definition
ClientRenderer11.h:92
Rendering::RenderDevice::Draws
DrawContext11 & Draws()
Definition
ClientRenderer11.h:96
Rendering::RenderDevice::Context
ID3D11DeviceContext * Context()
Definition
ClientRenderer11.h:99
Rendering::RenderDevice::Native
ID3D11Device * Native()
Definition
ClientRenderer11.h:98
Rendering::RenderMaterial
Definition
ClientRenderer11.h:173
Rendering::WindshieldRain11::Initialize
HRESULT Initialize(ID3D11Device *device, const std::filesystem::path &shaderDirectory={})
Definition
WindshieldRain11.cpp:317
Rendering::WindshieldRain11::Render
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)
Definition
WindshieldRain11.cpp:439
Rendering::WindshieldRain11::Update
void Update(float elapsed, float rain, const Vector &acceleration, const Vector &relativeWind, const std::vector< Matrix > &transforms, float airDensity, bool wiping, float rainAir=0)
Definition
WindshieldRain11.cpp:225
WindshieldRainRenderer::Render
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)
Definition
WindshieldRainRenderer.cpp:8
WindshieldRainRenderer::DepthLayout
Rendering::WindshieldRain11::DepthLayout DepthLayout
Definition
WindshieldRainRenderer.h:8
WindshieldRainRenderer::renderer
Rendering::WindshieldRain11 renderer
Definition
WindshieldRainRenderer.h:52
WindshieldRainRenderer::Update
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)
Definition
WindshieldRainRenderer.cpp:2
WindshieldRainRenderer::nativeDevice
Microsoft::WRL::ComPtr< ID3D11Device > nativeDevice
Definition
WindshieldRainRenderer.h:53
RiseMath::Matrix
Definition
ClientMath.h:80
RiseMath::Vector3
Definition
ClientMath.h:38
Viewscreen
WindshieldRainRenderer.cpp
Generated on
for Rise by
1.18.0