1 #ifndef EDITOR_COMPONENTS_LIGHTPREVIEW_HPP
2 #define EDITOR_COMPONENTS_LIGHTPREVIEW_HPP
4 #include <BLIB/Interfaces/GUI.hpp>
17 using Ptr = std::shared_ptr<LightPreview>;
25 static Ptr create(
const sf::Vector2f& size);
All classes and functionality used for implementing the game editor.
Helper component that displays an image with a light level overlaid on it.
std::shared_ptr< LightPreview > Ptr
void setLightLevel(std::uint8_t level)
Sets the light level to display.
static Ptr create(const sf::Vector2f &size)
Create a new LightPreview component.