Photon Engine
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
Visualizer.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
EngineEnv/CoreSdlResource.h
"
4
#include "
SDL/sdl_interface.h
"
5
6
namespace
ph
7
{
8
9
class
Visualizer
:
public
CoreSdlResource
10
{
11
public
:
12
static
constexpr
ESdlTypeCategory
CATEGORY
=
ESdlTypeCategory::Ref_Visualizer
;
13
14
public
:
15
void
cook
(
const
CoreCookingContext
& ctx,
CoreCookedUnit
& cooked)
override
= 0;
16
17
ESdlTypeCategory
getDynamicCategory
()
const override
;
18
19
public
:
20
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<Visualizer>
)
21
{
22
ClassType clazz(
"visualizer"
);
23
clazz.docName(
"Visualizer"
);
24
clazz.description(
"The main engine component for producing visual content."
);
25
return
clazz;
26
}
27
};
28
29
// In-header Implementations:
30
31
inline
ESdlTypeCategory
Visualizer::getDynamicCategory
()
const
32
{
33
return
CATEGORY
;
34
}
35
36
}
// end namespace ph
CoreSdlResource.h
ph::CoreCookedUnit
Definition
CoreCookedUnit.h:19
ph::CoreCookingContext
Definition
CoreCookingContext.h:15
ph::CoreSdlResource
Core SDL resource abstraction. This class does not provide static/dynamic category information....
Definition
CoreSdlResource.h:16
ph::TSdlOwnerClass
SDL binding type for a canonical SDL resource class.
Definition
TSdlOwnerClass.h:23
ph::Visualizer
Definition
Visualizer.h:10
ph::Visualizer::getDynamicCategory
ESdlTypeCategory getDynamicCategory() const override
Definition
Visualizer.h:31
ph::Visualizer::CATEGORY
static constexpr ESdlTypeCategory CATEGORY
Definition
Visualizer.h:12
ph::Visualizer::cook
void cook(const CoreCookingContext &ctx, CoreCookedUnit &cooked) override=0
ph::Visualizer::PH_DEFINE_SDL_CLASS
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< Visualizer >)
Definition
Visualizer.h:20
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
ph::ESdlTypeCategory
ESdlTypeCategory
Definition
ESdlTypeCategory.h:15
ph::ESdlTypeCategory::Ref_Visualizer
@ Ref_Visualizer
sdl_interface.h
Source
EngineEnv
Visualizer
Visualizer.h
Generated by
1.11.0