Model a light. Wrapper around GraphicsEngine's light. Currently only support Point and Directional Lights.
More...
#include <light.h>
|
std::shared_ptr< GraphicsEngine::Light > | light |
|
Model a light. Wrapper around GraphicsEngine's light. Currently only support Point and Directional Lights.
◆ Light() [1/2]
Construct a new Light object. Should not be used.
◆ Light() [2/2]
Saga::Light::Light |
( |
GraphicsEngine::LightType |
type, |
|
|
glm::vec3 |
lightData, |
|
|
glm::vec3 |
lightColor = glm::vec3(1) |
|
) |
| |
Construct a new Light object of a certain type.
- Parameters
-
type | type of the light. Can be GraphicsEngine::LightType::Directional or GraphicsEngine::LightType::Point |
lightData | if the light is directional, this is the normalized direction vector. Otherwise, it is the position of the light. |
lightColor | color of the light, where (1,1,1) is white and (0,0,0) is black. |
◆ operator const std::shared_ptr< GraphicsEngine::Light > &()
Saga::Light::operator const std::shared_ptr< GraphicsEngine::Light > & |
( |
| ) |
const |
|
inline |
◆ light
std::shared_ptr<GraphicsEngine::Light> Saga::Light::light |
The documentation for this struct was generated from the following files: