Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::ColorSelector Class Reference

#include <ColorSelector.hpp>

Public Member Functions

 ColorSelector (const std::string &title)
 
 ColorSelector (const std::string &title, const glm::vec3 &color)
 
void setUpdateCallback (std::function< void(const glm::vec3 &color)> callback)
 
void draw ()
 

Private Attributes

std::string _title
 
std::string _imguiIdentifier
 
glm::vec3 _color
 
std::function< void(const glm::vec3 &file)> _updateCallback
 

Constructor & Destructor Documentation

◆ ColorSelector() [1/2]

shkyera::ColorSelector::ColorSelector ( const std::string &  title)

◆ ColorSelector() [2/2]

shkyera::ColorSelector::ColorSelector ( const std::string &  title,
const glm::vec3 &  color 
)

Member Function Documentation

◆ draw()

void shkyera::ColorSelector::draw ( )

◆ setUpdateCallback()

void shkyera::ColorSelector::setUpdateCallback ( std::function< void(const glm::vec3 &color)>  callback)

Member Data Documentation

◆ _color

glm::vec3 shkyera::ColorSelector::_color
private

◆ _imguiIdentifier

std::string shkyera::ColorSelector::_imguiIdentifier
private

◆ _title

std::string shkyera::ColorSelector::_title
private

◆ _updateCallback

std::function<void(const glm::vec3& file)> shkyera::ColorSelector::_updateCallback
private

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