Antkeeper  0.0.1
Public Member Functions | List of all members
atmosphere_system Class Reference

Updates variables related to atmospheric scattering. More...

#include <atmosphere-system.hpp>

Inheritance diagram for atmosphere_system:
updatable_system

Public Member Functions

 atmosphere_system (entity::registry &registry)
 
 ~atmosphere_system ()
 
virtual void update (float t, float dt)
 Perform's a system's update() function. More...
 
void set_rgb_wavelengths (const math::dvec3 &wavelengths)
 Sets the wavelengths of red, green, and blue light. More...
 
void set_sky_pass (::render::sky_pass *pass)
 
void set_active_atmosphere (entity::id entity_id)
 Sets the entity ID of the active atmosphere. More...
 
- Public Member Functions inherited from updatable_system
 updatable_system (entity::registry &registry)
 Creates an updatable system. More...
 

Additional Inherited Members

- Protected Attributes inherited from updatable_system
entity::registryregistry
 Registry on which the system operate. More...
 

Detailed Description

Updates variables related to atmospheric scattering.

Definition at line 32 of file atmosphere-system.hpp.

Constructor & Destructor Documentation

◆ atmosphere_system()

atmosphere_system::atmosphere_system ( entity::registry registry)
explicit

Definition at line 25 of file atmosphere-system.cpp.

◆ ~atmosphere_system()

atmosphere_system::~atmosphere_system ( )

Definition at line 35 of file atmosphere-system.cpp.

Member Function Documentation

◆ set_active_atmosphere()

void atmosphere_system::set_active_atmosphere ( entity::id  entity_id)

Sets the entity ID of the active atmosphere.

Parameters
entity_idEntity ID of the active atmosphere.

Definition at line 74 of file atmosphere-system.cpp.

◆ set_rgb_wavelengths()

void atmosphere_system::set_rgb_wavelengths ( const math::dvec3 wavelengths)

Sets the wavelengths of red, green, and blue light.

Parameters
wavelengthsVector containing the wavelengths of red (x), green (y), and blue (z) light, in nanometers.

Definition at line 45 of file atmosphere-system.cpp.

◆ set_sky_pass()

void atmosphere_system::set_sky_pass ( ::render::sky_pass pass)

Definition at line 68 of file atmosphere-system.cpp.

◆ update()

void atmosphere_system::update ( float  t,
float  dt 
)
virtual

Perform's a system's update() function.

Parameters
tTotal elapsed time, in seconds.
dtDelta time, in seconds.

Implements updatable_system.

Definition at line 42 of file atmosphere-system.cpp.


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