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

#include <CloudVolumeRenderer.h>

Collaboration diagram for CloudVolumeRenderer:
[legend]

Classes

struct  Headlight

Public Member Functions

HRESULT Initialize (Rendering::RenderDevice *device)
void OnLostDevice ()
void OnDestroyDevice ()
void ResetHistory ()
bool Ready () const
bool OrganicReady () const
bool FogBeamsEnabled () const
const std::string & InitializationStatus () const
uint32_t Seed () const
void SetGroundLighting (const CloudVolume::GroundLighting &value)
void UpdateWeather (const CloudWeather::MapPtr &value, double elapsed)
CloudWeather::Frame WeatherFrame ()
void SetLightningEnabled (bool value)
void UpdateLightning (const CloudVolume::Parameters &value, double elapsed, const CloudVolume::Point &observer={})
bool SetLightningDiagnostic (bool enabled)
void SetLocalLightning (const RiseMath::Vector3 &position, const RiseMath::Color &color, float radius)
void SetLocalLightning (const RiseMath::Vector3 &position, const RiseMath::Color &color, float radius, const RiseMath::Vector3 &ground)
void SetHeadlights (const std::vector< Headlight > &lights)
HRESULT Render (Rendering::RenderDevice *device, const RiseMath::Matrix &view, const RiseMath::Matrix &projection, const RiseMath::Vector3 &eye, const CloudVolume::Parameters &parameters, const RiseMath::Vector3 &sunlight, const RiseMath::Color &light, const RiseMath::Color &ambient, const RiseMath::Color &airglow=RiseMath::Color(.125f,.375f,.25f, 1), const RiseMath::Vector4 &horizon=RiseMath::Vector4(0, 0, 0, 0), const RiseMath::Vector4 &atmosphere=RiseMath::Vector4(0, 0, 0, 0), const RiseMath::Vector4 &nightVisionGain=RiseMath::Vector4(1, 1, 1, 0))
HRESULT RenderSkyRing (Rendering::RenderDevice *device, Rendering::RenderTexture *atmosphere, Rendering::RenderBuffer *vertices, const RiseMath::Matrix &world, UINT segments, float physicalScale=1)
HRESULT RenderRain (Rendering::RenderDevice *device, const RiseMath::Matrix &world, UINT drops)
Rendering::CloudRenderer11 * Effect ()

Static Public Attributes

static constexpr unsigned MaxHeadlights =Rendering::CloudRenderer11::MaxHeadlights

Private Attributes

Rendering::CloudRenderer11 renderer

Detailed Description

Definition at line 5 of file CloudVolumeRenderer.h.

Member Function Documentation

◆ Effect()

Rendering::CloudRenderer11 * CloudVolumeRenderer::Effect ( )
inline

Definition at line 38 of file CloudVolumeRenderer.h.

Here is the caller graph for this function:

◆ FogBeamsEnabled()

bool CloudVolumeRenderer::FogBeamsEnabled ( ) const
inline

Definition at line 16 of file CloudVolumeRenderer.h.

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

◆ InitializationStatus()

const std::string & CloudVolumeRenderer::InitializationStatus ( ) const
inline

Definition at line 17 of file CloudVolumeRenderer.h.

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

◆ Initialize()

HRESULT CloudVolumeRenderer::Initialize ( Rendering::RenderDevice * device)
inline

Definition at line 10 of file CloudVolumeRenderer.h.

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

◆ OnDestroyDevice()

void CloudVolumeRenderer::OnDestroyDevice ( )
inline

Definition at line 12 of file CloudVolumeRenderer.h.

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

◆ OnLostDevice()

void CloudVolumeRenderer::OnLostDevice ( )
inline

Definition at line 11 of file CloudVolumeRenderer.h.

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

◆ OrganicReady()

bool CloudVolumeRenderer::OrganicReady ( ) const
inline

Definition at line 15 of file CloudVolumeRenderer.h.

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

◆ Ready()

bool CloudVolumeRenderer::Ready ( ) const
inline

Definition at line 14 of file CloudVolumeRenderer.h.

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

◆ Render()

HRESULT CloudVolumeRenderer::Render ( Rendering::RenderDevice * device,
const RiseMath::Matrix & view,
const RiseMath::Matrix & projection,
const RiseMath::Vector3 & eye,
const CloudVolume::Parameters & parameters,
const RiseMath::Vector3 & sunlight,
const RiseMath::Color & light,
const RiseMath::Color & ambient,
const RiseMath::Color & airglow = RiseMath::Color(.125f,.375f,.25f,1),
const RiseMath::Vector4 & horizon = RiseMath::Vector4(0,0,0,0),
const RiseMath::Vector4 & atmosphere = RiseMath::Vector4(0,0,0,0),
const RiseMath::Vector4 & nightVisionGain = RiseMath::Vector4(1,1,1,0) )

Definition at line 8 of file CloudVolumeRenderer.cpp.

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

◆ RenderRain()

HRESULT CloudVolumeRenderer::RenderRain ( Rendering::RenderDevice * device,
const RiseMath::Matrix & world,
UINT drops )

Definition at line 27 of file CloudVolumeRenderer.cpp.

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

◆ RenderSkyRing()

HRESULT CloudVolumeRenderer::RenderSkyRing ( Rendering::RenderDevice * device,
Rendering::RenderTexture * atmosphere,
Rendering::RenderBuffer * vertices,
const RiseMath::Matrix & world,
UINT segments,
float physicalScale = 1 )

Definition at line 18 of file CloudVolumeRenderer.cpp.

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

◆ ResetHistory()

void CloudVolumeRenderer::ResetHistory ( )
inline

Definition at line 13 of file CloudVolumeRenderer.h.

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

◆ Seed()

uint32_t CloudVolumeRenderer::Seed ( ) const
inline

Definition at line 18 of file CloudVolumeRenderer.h.

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

◆ SetGroundLighting()

void CloudVolumeRenderer::SetGroundLighting ( const CloudVolume::GroundLighting & value)
inline

Definition at line 19 of file CloudVolumeRenderer.h.

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

◆ SetHeadlights()

void CloudVolumeRenderer::SetHeadlights ( const std::vector< Headlight > & lights)

Definition at line 2 of file CloudVolumeRenderer.cpp.

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

◆ SetLightningDiagnostic()

bool CloudVolumeRenderer::SetLightningDiagnostic ( bool enabled)
inline

Definition at line 24 of file CloudVolumeRenderer.h.

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

◆ SetLightningEnabled()

void CloudVolumeRenderer::SetLightningEnabled ( bool value)
inline

Definition at line 22 of file CloudVolumeRenderer.h.

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

◆ SetLocalLightning() [1/2]

void CloudVolumeRenderer::SetLocalLightning ( const RiseMath::Vector3 & position,
const RiseMath::Color & color,
float radius )
inline

Definition at line 25 of file CloudVolumeRenderer.h.

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

◆ SetLocalLightning() [2/2]

void CloudVolumeRenderer::SetLocalLightning ( const RiseMath::Vector3 & position,
const RiseMath::Color & color,
float radius,
const RiseMath::Vector3 & ground )
inline

Definition at line 27 of file CloudVolumeRenderer.h.

Here is the call graph for this function:

◆ UpdateLightning()

void CloudVolumeRenderer::UpdateLightning ( const CloudVolume::Parameters & value,
double elapsed,
const CloudVolume::Point & observer = {} )
inline

Definition at line 23 of file CloudVolumeRenderer.h.

Here is the caller graph for this function:

◆ UpdateWeather()

void CloudVolumeRenderer::UpdateWeather ( const CloudWeather::MapPtr & value,
double elapsed )
inline

Definition at line 20 of file CloudVolumeRenderer.h.

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

◆ WeatherFrame()

CloudWeather::Frame CloudVolumeRenderer::WeatherFrame ( )
inline

Definition at line 21 of file CloudVolumeRenderer.h.

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

Member Data Documentation

◆ MaxHeadlights

unsigned CloudVolumeRenderer::MaxHeadlights =Rendering::CloudRenderer11::MaxHeadlights
staticconstexpr

Definition at line 9 of file CloudVolumeRenderer.h.

◆ renderer

Rendering::CloudRenderer11 CloudVolumeRenderer::renderer
private

Definition at line 40 of file CloudVolumeRenderer.h.


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