Represents a renderable light in a Map.
More...
#include <Light.hpp>
Represents a renderable light in a Map.
Definition at line 16 of file Light.hpp.
◆ Light() [1/2]
core::map::Light::Light |
( |
| ) |
|
Creates an empty light.
Definition at line 9 of file Light.cpp.
◆ Light() [2/2]
core::map::Light::Light |
( |
std::uint16_t |
radius, |
|
|
const sf::Vector2i & |
position, |
|
|
const sf::Vector3i & |
color = DefaultColor |
|
) |
| |
Creates a light from the given parameters.
- Parameters
-
radius | The radius of the light, in pixels |
position | The position of the light, in pixels |
color | The color of the light |
Definition at line 13 of file Light.cpp.
◆ color
sf::Vector3i core::map::Light::color |
◆ DefaultColor
const sf::Vector3i core::map::Light::DefaultColor |
|
static |
◆ position
sf::Vector2i core::map::Light::position |
◆ radius
std::uint16_t core::map::Light::radius |
The documentation for this struct was generated from the following files: