![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Helper component that displays an image with a light level overlaid on it. More...
#include <LightPreview.hpp>
Public Types | |
using | Ptr = std::shared_ptr< LightPreview > |
Public Member Functions | |
void | setLightLevel (std::uint8_t level) |
Sets the light level to display. More... | |
Static Public Member Functions | |
static Ptr | create (const sf::Vector2f &size) |
Create a new LightPreview component. More... | |
Helper component that displays an image with a light level overlaid on it.
Definition at line 15 of file LightPreview.hpp.
using editor::component::LightPreview::Ptr = std::shared_ptr<LightPreview> |
Definition at line 17 of file LightPreview.hpp.
|
static |
Create a new LightPreview component.
size | The preview size |
Definition at line 9 of file LightPreview.cpp.
void editor::component::LightPreview::setLightLevel | ( | std::uint8_t | level | ) |
Sets the light level to display.
Definition at line 18 of file LightPreview.cpp.