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
>
13
#include <
Components/RenderingTextureComponent.hpp
>
14
#include <
ECS/Registry.hpp
>
15
#include <
Rendering/ShaderProgram.hpp
>
16
#include <UI/Widget.hpp>
17
18
namespace
shkyera
{
19
25
class
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
:
37
void
updateWindowCoordinateSystem
();
38
39
std::shared_ptr<Registry>
_registry
;
40
};
41
42
}
// namespace shkyera
Registry.hpp
RenderingTextureComponent.hpp
ShaderProgram.hpp
Types.hpp
shkyera::SceneWidget
A user interface widget for rendering scenes.
Definition
SceneWidget.hpp:25
shkyera::SceneWidget::draw
virtual void draw() override
Implementation of the abstract draw method to render the scene widget.
Definition
SceneWidget.cpp:23
shkyera::SceneWidget::_registry
std::shared_ptr< Registry > _registry
Definition
SceneWidget.hpp:39
shkyera::SceneWidget::updateWindowCoordinateSystem
void updateWindowCoordinateSystem()
Definition
SceneWidget.cpp:43
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
SceneWidget.hpp
Generated by
1.9.8
Franciszek Szewczyk © 2023