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
>
13
#include <
Components/RenderingTextureComponent.hpp
>
14
#include <
Rendering/ShaderProgram.hpp
>
15
#include <
Systems/ParticleSystem.hpp
>
16
#include <
Systems/RenderingSystem.hpp
>
17
#include <UI/Widget.hpp>
18
19
namespace
shkyera
{
20
26
class
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
:
38
void
updateWindowCoordinateSystem
();
39
40
std::shared_ptr<Registry>
_registry
;
41
std::unique_ptr<Registry>
_storedRegistry
;
42
43
AssetRef<Texture>
_playButtonTexture
;
44
AssetRef<Texture>
_stopButtonTexture
;
45
};
46
47
}
// namespace shkyera
ParticleSystem.hpp
RenderingSystem.hpp
RenderingTextureComponent.hpp
ShaderProgram.hpp
Types.hpp
shkyera::RuntimeWidget
A user interface widget for running and rendering the game runtime.
Definition
RuntimeWidget.hpp:26
shkyera::RuntimeWidget::_storedRegistry
std::unique_ptr< Registry > _storedRegistry
Definition
RuntimeWidget.hpp:41
shkyera::RuntimeWidget::_playButtonTexture
AssetRef< Texture > _playButtonTexture
Definition
RuntimeWidget.hpp:43
shkyera::RuntimeWidget::updateWindowCoordinateSystem
void updateWindowCoordinateSystem()
Definition
RuntimeWidget.cpp:66
shkyera::RuntimeWidget::draw
virtual void draw() override
Implementation of the abstract draw method to render the runtime widget.
Definition
RuntimeWidget.cpp:25
shkyera::RuntimeWidget::_stopButtonTexture
AssetRef< Texture > _stopButtonTexture
Definition
RuntimeWidget.hpp:44
shkyera::RuntimeWidget::_registry
std::shared_ptr< Registry > _registry
Definition
RuntimeWidget.hpp:40
shkyera::Widget
An abstract base class representing a GUI widget.
Definition
Widget.hpp:23
shkyera::Widget::Widget
Widget(std::string name)
Constructor to create a widget with a specified name.
Definition
Widget.cpp:5
shkyera
Definition
Asset.hpp:6
shkyera::Clock
Definition
Clock.hpp:9
src
ui
widgets
RuntimeWidget.hpp
Generated by
1.9.8
Franciszek Szewczyk © 2023