Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
ModelComponentUI.hpp
Go to the documentation of this file.
1#pragma once
2
6#include <ECS/Registry.hpp>
7#include <UI/Common/AssetSelector.hpp>
8#include <UI/ComponentUI.hpp>
9
10namespace shkyera {
11
13 public:
14 ModelComponentUI(std::shared_ptr<Registry> registry, ModelComponent* modelComponent);
15
16 void draw() override;
17 void setOnMeshUpdate(std::function<void()> callback);
18
19 private:
21 std::shared_ptr<Registry> _registry;
22
25 std::function<void()> _onMeshUpdate;
26};
27
28} // namespace shkyera
Definition ComponentUI.hpp:8
Definition ModelComponent.hpp:12
Definition ModelComponentUI.hpp:12
AssetSelector< Material > _materialSelector
Definition ModelComponentUI.hpp:24
std::shared_ptr< Registry > _registry
Definition ModelComponentUI.hpp:21
void draw() override
Definition ModelComponentUI.cpp:40
void setOnMeshUpdate(std::function< void()> callback)
Definition ModelComponentUI.cpp:36
ModelComponent * _modelComponent
Definition ModelComponentUI.hpp:20
AssetSelector< Mesh > _meshSelector
Definition ModelComponentUI.hpp:23
std::function< void()> _onMeshUpdate
Definition ModelComponentUI.hpp:25
Definition Asset.hpp:6
Definition Clock.hpp:9