Photon Editor Library
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
RenderModule.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
App/Module/AppModule.h
"
4
5
#include <Math/TVector2.h>
6
7
namespace
ph::editor
8
{
9
10
class
ModuleAttachmentInfo;
11
class
MainThreadRenderUpdateContext;
12
class
RenderThreadCaller;
13
14
class
RenderModule
:
public
AppModule
15
{
16
public
:
17
std::string
getName
()
const override
= 0;
18
23
virtual
void
renderUpdate
(
const
MainThreadRenderUpdateContext
& ctx) = 0;
24
29
virtual
void
createRenderCommands
(
RenderThreadCaller
& caller) = 0;
30
37
virtual
void
createSetupRenderCommands
(
RenderThreadCaller
& caller);
38
virtual
void
createCleanupRenderCommands
(
RenderThreadCaller
& caller);
40
41
void
onAttach
(
const
ModuleAttachmentInfo
& info)
override
= 0;
42
void
onDetach
()
override
= 0;
43
};
44
45
}
// end namespace ph::editor
AppModule.h
ph::editor::AppModule
Definition
AppModule.h:19
ph::editor::MainThreadRenderUpdateContext
Definition
MainThreadRenderUpdateContext.h:11
ph::editor::ModuleAttachmentInfo
Definition
ModuleAttachmentInfo.h:15
ph::editor::RenderModule
Definition
RenderModule.h:15
ph::editor::RenderModule::onAttach
void onAttach(const ModuleAttachmentInfo &info) override=0
ph::editor::RenderModule::getName
std::string getName() const override=0
ph::editor::RenderModule::createSetupRenderCommands
virtual void createSetupRenderCommands(RenderThreadCaller &caller)
Definition
RenderModule.cpp:6
ph::editor::RenderModule::onDetach
void onDetach() override=0
ph::editor::RenderModule::createCleanupRenderCommands
virtual void createCleanupRenderCommands(RenderThreadCaller &caller)
Definition
RenderModule.cpp:9
ph::editor::RenderModule::createRenderCommands
virtual void createRenderCommands(RenderThreadCaller &caller)=0
ph::editor::RenderModule::renderUpdate
virtual void renderUpdate(const MainThreadRenderUpdateContext &ctx)=0
ph::editor::RenderThreadCaller
Thin wrapper for render thread interactions from another thread. Mainly to hide unrelated render thre...
Definition
RenderThreadCaller.h:16
ph::editor
Definition
ph_editor.h:10
Source
App
Module
RenderModule.h
Generated by
1.11.0