-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSceneWindow.hpp
More file actions
31 lines (25 loc) · 836 Bytes
/
Copy pathSceneWindow.hpp
File metadata and controls
31 lines (25 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Created by Alex on 12/20/2020.
//
#pragma once
#include "IEditorWindow.hpp"
#include "ImGUIWrapper.hpp"
#include "../engine/core/InternalPointer.hpp"
#include "../engine/core/Action.hpp"
#include "../engine/core/FrameBuffer.hpp"
#include "../engine/core/GameObject.hpp"
namespace RPG {
struct SceneWindow : public IEditorWindow {
public:
SceneWindow();
void Render(ImGuiID dockID) override;
RPG::Action<>::Callback ToggleIsOpen() override;
RPG::Action<>::Func<bool> IsOpen() override;
void SetFrameBuffer(uint32_t frameBufferID);
void SetSelectedGameObject(std::shared_ptr<RPG::GameObject> gameObject = nullptr);
void SelectedGameObjectAction(RPG::Action<std::shared_ptr<RPG::GameObject>>::Callback callback);
private:
struct Internal;
RPG::InternalPointer<Internal> internal;
};
}