Antkeeper
0.0.1
|
Updates variables related to atmospheric scattering. More...
#include <atmosphere-system.hpp>
Public Member Functions | |
atmosphere_system (entity::registry ®istry) | |
~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... | |
![]() | |
updatable_system (entity::registry ®istry) | |
Creates an updatable system. More... | |
Additional Inherited Members | |
![]() | |
entity::registry & | registry |
Registry on which the system operate. More... | |
Updates variables related to atmospheric scattering.
Definition at line 32 of file atmosphere-system.hpp.
|
explicit |
Definition at line 25 of file atmosphere-system.cpp.
atmosphere_system::~atmosphere_system | ( | ) |
Definition at line 35 of file atmosphere-system.cpp.
void atmosphere_system::set_active_atmosphere | ( | entity::id | entity_id | ) |
Sets the entity ID of the active atmosphere.
entity_id | Entity ID of the active atmosphere. |
Definition at line 74 of file atmosphere-system.cpp.
void atmosphere_system::set_rgb_wavelengths | ( | const math::dvec3 & | wavelengths | ) |
Sets the wavelengths of red, green, and blue light.
wavelengths | Vector containing the wavelengths of red (x), green (y), and blue (z) light, in nanometers. |
Definition at line 45 of file atmosphere-system.cpp.
void atmosphere_system::set_sky_pass | ( | ::render::sky_pass * | pass | ) |
Definition at line 68 of file atmosphere-system.cpp.
|
virtual |
Perform's a system's update() function.
t | Total elapsed time, in seconds. |
dt | Delta time, in seconds. |
Implements updatable_system.
Definition at line 42 of file atmosphere-system.cpp.