Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
SceneWidget.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>
14#include <ECS/Registry.hpp>
16#include <UI/Widget.hpp>
17
18namespace shkyera {
19
25class SceneWidget : public Widget {
26 public:
27 using Widget::Widget;
28
29 SceneWidget(std::shared_ptr<Registry> registry);
30
34 virtual void draw() override;
35
36 private:
38
39 std::shared_ptr<Registry> _registry;
40};
41
42} // namespace shkyera
A user interface widget for rendering scenes.
Definition SceneWidget.hpp:25
virtual void draw() override
Implementation of the abstract draw method to render the scene widget.
Definition SceneWidget.cpp:23
std::shared_ptr< Registry > _registry
Definition SceneWidget.hpp:39
void updateWindowCoordinateSystem()
Definition SceneWidget.cpp:43
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