Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | Static Public Member Functions | List of all members
editor::component::LightPreview Class Reference

Helper component that displays an image with a light level overlaid on it. More...

#include <LightPreview.hpp>

+ Inheritance diagram for editor::component::LightPreview:

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...
 

Detailed Description

Helper component that displays an image with a light level overlaid on it.

Definition at line 15 of file LightPreview.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 17 of file LightPreview.hpp.

Member Function Documentation

◆ create()

LightPreview::Ptr editor::component::LightPreview::create ( const sf::Vector2f &  size)
static

Create a new LightPreview component.

Parameters
sizeThe preview size
Returns
Ptr The new component

Definition at line 9 of file LightPreview.cpp.

◆ setLightLevel()

void editor::component::LightPreview::setLightLevel ( std::uint8_t  level)

Sets the light level to display.

Definition at line 18 of file LightPreview.cpp.


The documentation for this class was generated from the following files: