Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
DesignerSceneAddedEvent.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <Common/assertion.h>
6
7namespace ph::editor
8{
9
10class DesignerScene;
11
14class DesignerSceneAddedEvent final : public TEditorEvent<false>
15{
16public:
18
22 DesignerScene& getScene() const;
23
24private:
25 DesignerScene* m_scene;
26};
27
29 DesignerScene* const scene, Editor* const editor)
30
31 : TEditorEvent(editor)
32
33 , m_scene(scene)
34{}
35
37{
38 PH_ASSERT(m_scene);
39 return *m_scene;
40}
41
42}// end namespace ph::editor
Event for a scene that is added.
Definition DesignerSceneAddedEvent.h:15
DesignerSceneAddedEvent(DesignerScene *scene, Editor *editor)
Definition DesignerSceneAddedEvent.h:28
DesignerScene & getScene() const
Definition DesignerSceneAddedEvent.h:36
Definition DesignerScene.h:58
Definition Editor.h:45
Definition TEditorEvent.h:15
Definition ph_editor.h:10