Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
ComponentUI.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace shkyera {
7
9 public:
10 ComponentUI() { _icon = utils::assets::readPermanent<Texture>(Image::ICON_COMPONENT_TRANSFORM); }
11
12 ComponentUI(const std::filesystem::path& texturePath) { _icon = utils::assets::readPermanent<Texture>(texturePath); }
13
14 virtual ~ComponentUI() = default;
15
16 virtual void draw() = 0;
17
18 protected:
20};
21
22} // namespace shkyera
Definition ComponentUI.hpp:8
virtual void draw()=0
AssetRef< Texture > _icon
Definition ComponentUI.hpp:19
ComponentUI()
Definition ComponentUI.hpp:10
virtual ~ComponentUI()=default
ComponentUI(const std::filesystem::path &texturePath)
Definition ComponentUI.hpp:12
static std::filesystem::path ICON_COMPONENT_TRANSFORM
Definition Image.hpp:51
Definition Asset.hpp:6
Definition Clock.hpp:9