Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
RuntimeWidget.hpp
Go to the documentation of this file.
1
7#pragma once
8
9#include <memory>
10
11#include <GLFW/glfw3.h>
12#include <Common/Types.hpp>
17#include <UI/Widget.hpp>
18
19namespace shkyera {
20
26class RuntimeWidget : public Widget {
27 public:
28 using Widget::Widget;
29
30 RuntimeWidget(std::shared_ptr<Registry> registry);
31
35 virtual void draw() override;
36
37 private:
39
40 std::shared_ptr<Registry> _registry;
41 std::unique_ptr<Registry> _storedRegistry;
42
45};
46
47} // namespace shkyera
A user interface widget for running and rendering the game runtime.
Definition RuntimeWidget.hpp:26
std::unique_ptr< Registry > _storedRegistry
Definition RuntimeWidget.hpp:41
AssetRef< Texture > _playButtonTexture
Definition RuntimeWidget.hpp:43
void updateWindowCoordinateSystem()
Definition RuntimeWidget.cpp:66
virtual void draw() override
Implementation of the abstract draw method to render the runtime widget.
Definition RuntimeWidget.cpp:25
AssetRef< Texture > _stopButtonTexture
Definition RuntimeWidget.hpp:44
std::shared_ptr< Registry > _registry
Definition RuntimeWidget.hpp:40
An abstract base class representing a GUI widget.
Definition Widget.hpp:23
Widget(std::string name)
Constructor to create a widget with a specified name.
Definition Widget.cpp:5
Definition Asset.hpp:6
Definition Clock.hpp:9