Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
ColorSelector.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4#include <string>
5
6#include <glm/glm.hpp>
7#include "imgui.h"
8
9namespace shkyera {
10
12 public:
13 ColorSelector(const std::string& title);
14 ColorSelector(const std::string& title, const glm::vec3& color);
15
16 void setUpdateCallback(std::function<void(const glm::vec3& color)> callback);
17
18 void draw();
19
20 private:
21 std::string _title;
22 std::string _imguiIdentifier;
23 glm::vec3 _color;
24 std::function<void(const glm::vec3& file)> _updateCallback;
25};
26
27} // namespace shkyera
Definition ColorSelector.hpp:11
std::string _title
Definition ColorSelector.hpp:21
std::function< void(const glm::vec3 &file)> _updateCallback
Definition ColorSelector.hpp:24
std::string _imguiIdentifier
Definition ColorSelector.hpp:22
void setUpdateCallback(std::function< void(const glm::vec3 &color)> callback)
Definition ColorSelector.cpp:14
glm::vec3 _color
Definition ColorSelector.hpp:23
void draw()
Definition ColorSelector.cpp:18
Definition Asset.hpp:6
Definition Clock.hpp:9