Photon Editor Library
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
Platform.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <Utility/INoCopyAndMove.h>
4
#include <Common/primitive_type.h>
5
#include <Common/exceptions.h>
6
7
namespace
ph::editor
8
{
9
10
class
Editor;
11
class
PlatformInput;
12
class
PlatformDisplay;
13
14
class
PlatformException
:
public
RuntimeException
15
{
16
public
:
17
using
RuntimeException::RuntimeException;
18
};
19
26
class
Platform
:
private
INoCopyAndMove
27
{
28
public
:
29
explicit
Platform
(
Editor
& editor);
30
virtual
~Platform
();
31
32
virtual
void
update
(float64 deltaS) = 0;
33
virtual
const
PlatformInput
&
getInput
()
const
= 0;
34
virtual
const
PlatformDisplay
&
getDisplay
()
const
= 0;
35
36
Editor
&
getEditor
();
37
const
Editor
&
getEditor
()
const
;
38
39
private
:
40
Editor
& m_editor;
41
};
42
43
inline
Editor
&
Platform::getEditor
()
44
{
45
return
m_editor;
46
}
47
48
inline
const
Editor
&
Platform::getEditor
()
const
49
{
50
return
m_editor;
51
}
52
53
}
// end namespace ph::editor
ph::editor::Editor
Definition
Editor.h:45
ph::editor::PlatformDisplay
Platform display abstraction.
Definition
PlatformDisplay.h:23
ph::editor::PlatformException
Definition
Platform.h:15
ph::editor::Platform
Platform abstraction. An abstraction layer for the underlying hardware the application is running on....
Definition
Platform.h:27
ph::editor::Platform::update
virtual void update(float64 deltaS)=0
ph::editor::Platform::getEditor
Editor & getEditor()
Definition
Platform.h:43
ph::editor::Platform::Platform
Platform(Editor &editor)
Definition
Platform.cpp:6
ph::editor::Platform::getInput
virtual const PlatformInput & getInput() const =0
ph::editor::Platform::~Platform
virtual ~Platform()
ph::editor::Platform::getDisplay
virtual const PlatformDisplay & getDisplay() const =0
ph::editor::PlatformInput
Platform input abstraction.
Definition
PlatformInput.h:18
ph::editor
Definition
ph_editor.h:10
Source
Platform
Platform.h
Generated by
1.11.0