Photon Editor Library
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
SceneRenderer.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Render/IDynamicSceneResource.h
"
4
5
#include <Utility/INoCopyAndMove.h>
6
7
namespace
ph::editor::render
8
{
9
10
class
SceneRenderer
:
public
IDynamicSceneResource
11
{
12
public
:
13
void
setupGHI
(
GHIThreadCaller
& caller)
override
= 0;
14
void
cleanupGHI
(
GHIThreadCaller
& caller)
override
= 0;
15
void
update
(
const
RenderThreadUpdateContext
& ctx)
override
= 0;
16
void
createGHICommands
(
GHIThreadCaller
& caller)
override
= 0;
17
18
EProcessOrder
getProcessOrder
()
const override
;
19
bool
isDynamic
()
const override
;
20
};
21
22
inline
EProcessOrder
SceneRenderer::getProcessOrder
()
const
23
{
24
return
EProcessOrder::ViewRender
;
25
}
26
27
inline
bool
SceneRenderer::isDynamic
()
const
28
{
29
return
true
;
30
}
31
32
}
// end namespace ph::editor::render
IDynamicSceneResource.h
ph::editor::GHIThreadCaller
Thin wrapper for GHI thread interactions from another thread. Mainly to hide unrelated GHI interface ...
Definition
GHIThreadCaller.h:16
ph::editor::RenderThreadUpdateContext
Definition
RenderThreadUpdateContext.h:11
ph::editor::render::IDynamicSceneResource
Definition
IDynamicSceneResource.h:20
ph::editor::render::SceneRenderer
Definition
SceneRenderer.h:11
ph::editor::render::SceneRenderer::isDynamic
bool isDynamic() const override
Definition
SceneRenderer.h:27
ph::editor::render::SceneRenderer::getProcessOrder
EProcessOrder getProcessOrder() const override
Definition
SceneRenderer.h:22
ph::editor::render::SceneRenderer::setupGHI
void setupGHI(GHIThreadCaller &caller) override=0
ph::editor::render::SceneRenderer::createGHICommands
void createGHICommands(GHIThreadCaller &caller) override=0
ph::editor::render::SceneRenderer::cleanupGHI
void cleanupGHI(GHIThreadCaller &caller) override=0
ph::editor::render::SceneRenderer::update
void update(const RenderThreadUpdateContext &ctx) override=0
ph::editor::render
Definition
DesignerObject.h:19
ph::editor::render::EProcessOrder
EProcessOrder
Definition
IDynamicSceneResource.h:11
ph::editor::render::EProcessOrder::ViewRender
@ ViewRender
Source
Render
Renderer
SceneRenderer.h
Generated by
1.11.0