Rise
The Vieneo Province
Loading...
Searching...
No Matches
WindshieldRainRenderer Class Reference

#include <WindshieldRainRenderer.h>

Collaboration diagram for WindshieldRainRenderer:
[legend]

Public Types

using Vertex = Rendering::WindshieldRain11::Vertex
using DepthLayout = Rendering::WindshieldRain11::DepthLayout

Public Member Functions

void Clear ()
void SetSimulator (bool value)
void SetGlassCondition (int condition)
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 RiseMath::Vector3 &acceleration, const RiseMath::Vector3 &wind, const std::vector< RiseMath::Matrix > &transforms, float density, bool wiping, float rainAir=0)
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 OnLostDevice ()
size_t PaneCount () const
bool Wet () const
float Wetness () const

Static Public Member Functions

static RiseMath::Matrix ToPhysicsTransform (const RiseMath::Matrix &value)
static WindshieldRain::Point ProjectAcceleration (const RiseMath::Vector3 &acceleration, const RiseMath::Matrix &inverse, const RiseMath::Vector3 &normal, const RiseMath::Vector3 &u, const RiseMath::Vector3 &v)
template<class Draw>
static HRESULT DrawCockpitGlass (Rendering::RenderDevice *device, Draw draw)

Private Attributes

Rendering::WindshieldRain11 renderer
Microsoft::WRL::ComPtr< ID3D11Device > nativeDevice

Detailed Description

Definition at line 4 of file WindshieldRainRenderer.h.

Member Typedef Documentation

◆ DepthLayout

◆ Vertex

Member Function Documentation

◆ AddGlass()

void WindshieldRainRenderer::AddGlass ( int component,
const Vertex * vertices,
size_t count )
inline

Definition at line 16 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddWiper()

void WindshieldRainRenderer::AddWiper ( int component,
const Vertex * vertices,
size_t count )
inline

Definition at line 17 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Clear()

void WindshieldRainRenderer::Clear ( )
inline

Definition at line 13 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawCockpitGlass()

template<class Draw>
HRESULT WindshieldRainRenderer::DrawCockpitGlass ( Rendering::RenderDevice * device,
Draw draw )
inlinestatic

Definition at line 21 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FinishGeometry()

void WindshieldRainRenderer::FinishGeometry ( )
inline

Definition at line 18 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnLostDevice()

void WindshieldRainRenderer::OnLostDevice ( )
inline

Definition at line 47 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PaneCount()

size_t WindshieldRainRenderer::PaneCount ( ) const
inline

Definition at line 48 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProjectAcceleration()

WindshieldRain::Point WindshieldRainRenderer::ProjectAcceleration ( const RiseMath::Vector3 & acceleration,
const RiseMath::Matrix & inverse,
const RiseMath::Vector3 & normal,
const RiseMath::Vector3 & u,
const RiseMath::Vector3 & v )
inlinestatic

Definition at line 10 of file WindshieldRainRenderer.h.

Here is the call graph for this function:

◆ Render()

HRESULT WindshieldRainRenderer::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 at line 8 of file WindshieldRainRenderer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetGlassCondition()

void WindshieldRainRenderer::SetGlassCondition ( int condition)
inline

Definition at line 15 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetSimulator()

void WindshieldRainRenderer::SetSimulator ( bool value)
inline

Definition at line 14 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToPhysicsTransform()

RiseMath::Matrix WindshieldRainRenderer::ToPhysicsTransform ( const RiseMath::Matrix & value)
inlinestatic

Definition at line 9 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Update()

void WindshieldRainRenderer::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 at line 2 of file WindshieldRainRenderer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Wet()

bool WindshieldRainRenderer::Wet ( ) const
inline

Definition at line 49 of file WindshieldRainRenderer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Wetness()

float WindshieldRainRenderer::Wetness ( ) const
inline

Definition at line 50 of file WindshieldRainRenderer.h.

Here is the call graph for this function:

Member Data Documentation

◆ nativeDevice

Microsoft::WRL::ComPtr<ID3D11Device> WindshieldRainRenderer::nativeDevice
private

Definition at line 53 of file WindshieldRainRenderer.h.

◆ renderer

Rendering::WindshieldRain11 WindshieldRainRenderer::renderer
private

Definition at line 52 of file WindshieldRainRenderer.h.


The documentation for this class was generated from the following files: