Photon Editor Library
2.0.0-beta
A physically based renderer.
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
};
36
37
inline
const
PlatformInput
&
GlfwPlatform::getInput
()
const
38
{
39
return
m_input;
40
}
41
42
inline
const
PlatformDisplay
&
GlfwPlatform::getDisplay
()
const
43
{
44
return
m_display;
45
}
46
47
inline
bool
GlfwPlatform::isGlfwWindowInitialized
()
const
48
{
49
return
m_display.
getGlfwWindow
() !=
nullptr
;
50
}
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