Loading [MathJax]/extensions/MathMenu.js
Photon Editor Library
2.0.0-beta
A physically based renderer.
Toggle main menu visibility
Home
Components
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
w
Functions
a
c
g
i
n
p
s
t
Variables
Typedefs
Enumerations
Enumerator
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
f
i
l
p
t
Functions
Variables
Macros
f
i
p
▼
Photon Editor Library
Home
Components
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
Include
▼
Source
►
Api
►
App
►
Designer
►
EditorCore
▼
Platform
▼
GlfwPlatform
►
GlfwDisplay.cpp
►
GlfwDisplay.h
►
GlfwInput.cpp
►
GlfwInput.h
►
GlfwPlatform.cpp
►
GlfwPlatform.h
Platform.cpp
►
Platform.h
PlatformDisplay.cpp
►
PlatformDisplay.h
PlatformInput.cpp
►
PlatformInput.h
►
Procedure
►
Render
►
RenderCore
►
ThirdParty
►
editor_lib_config.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Concepts
Loading...
Searching...
No Matches
GlfwPlatform.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Platform/Platform.h
"
4
#include "
Platform/GlfwPlatform/GlfwInput.h
"
5
#include "
Platform/GlfwPlatform/GlfwDisplay.h
"
6
7
#include "
ThirdParty/GLFW3_fwd.h
"
8
9
#include <memory>
10
11
namespace
ph::editor
12
{
13
14
class
AppSettings;
15
class
Editor;
16
17
class
GlfwPlatform
:
public
Platform
18
{
19
public
:
20
GlfwPlatform
(
const
AppSettings
& settings,
Editor
& editor);
21
~GlfwPlatform
()
override
;
22
23
void
update
(float64 deltaS)
override
;
24
const
PlatformInput
&
getInput
()
const override
;
25
const
PlatformDisplay
&
getDisplay
()
const override
;
26
27
bool
isGlfwWindowInitialized
()
const
;
28
29
private
:
30
void
initialize(
const
AppSettings
& settings);
31
void
terminate();
32
33
GlfwInput
m_input;
34
GlfwDisplay
m_display;
35
};
17
class
GlfwPlatform
:
public
Platform
{
…
};
36
37
inline
const
PlatformInput
&
GlfwPlatform::getInput
()
const
38
{
39
return
m_input;
40
}
37
inline
const
PlatformInput
&
GlfwPlatform::getInput
()
const
{
…
}
41
42
inline
const
PlatformDisplay
&
GlfwPlatform::getDisplay
()
const
43
{
44
return
m_display;
45
}
42
inline
const
PlatformDisplay
&
GlfwPlatform::getDisplay
()
const
{
…
}
46
47
inline
bool
GlfwPlatform::isGlfwWindowInitialized
()
const
48
{
49
return
m_display.
getGlfwWindow
() !=
nullptr
;
50
}
47
inline
bool
GlfwPlatform::isGlfwWindowInitialized
()
const
{
…
}
51
52
}
// end namespace ph::editor
GLFW3_fwd.h
GlfwDisplay.h
GlfwInput.h
Platform.h
ph::editor::AppSettings
Definition
AppSettings.h:17
ph::editor::Editor
Definition
Editor.h:45
ph::editor::GlfwDisplay
Definition
GlfwDisplay.h:17
ph::editor::GlfwDisplay::getGlfwWindow
GLFWwindow * getGlfwWindow() const
Definition
GlfwDisplay.h:52
ph::editor::GlfwInput
Definition
GlfwInput.h:15
ph::editor::GlfwPlatform
Definition
GlfwPlatform.h:18
ph::editor::GlfwPlatform::isGlfwWindowInitialized
bool isGlfwWindowInitialized() const
Definition
GlfwPlatform.h:47
ph::editor::GlfwPlatform::getInput
const PlatformInput & getInput() const override
Definition
GlfwPlatform.h:37
ph::editor::GlfwPlatform::GlfwPlatform
GlfwPlatform(const AppSettings &settings, Editor &editor)
Definition
GlfwPlatform.cpp:26
ph::editor::GlfwPlatform::getDisplay
const PlatformDisplay & getDisplay() const override
Definition
GlfwPlatform.h:42
ph::editor::GlfwPlatform::~GlfwPlatform
~GlfwPlatform() override
Definition
GlfwPlatform.cpp:34
ph::editor::GlfwPlatform::update
void update(float64 deltaS) override
Definition
GlfwPlatform.cpp:39
ph::editor::PlatformDisplay
Platform display abstraction.
Definition
PlatformDisplay.h:23
ph::editor::Platform
Platform abstraction. An abstraction layer for the underlying hardware the application is running on....
Definition
Platform.h:27
ph::editor::PlatformInput
Platform input abstraction.
Definition
PlatformInput.h:18
ph::editor
Definition
ph_editor.h:10
Source
Platform
GlfwPlatform
GlfwPlatform.h
Generated by
1.11.0