Loading [MathJax]/jax/output/HTML-CSS/config.js
Photon Engine
2.0.0-beta
A physically based renderer.
Toggle main menu visibility
Home
Components
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
k
m
p
r
s
t
u
x
y
z
Typedefs
a
b
c
d
e
f
h
i
k
l
m
p
q
r
s
t
v
Enumerations
e
Enumerator
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Related Symbols
Files
File List
File Members
All
b
c
f
i
k
m
p
s
Functions
Typedefs
Macros
▼
Photon Engine
Home
Components
►
Engine
►
Engine Directories
Bibliography
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
Documentation
►
Include
▼
Source
►
Actor
►
Api
►
Common
►
Core
►
DataIO
▼
EngineEnv
►
Observer
▼
SampleSource
HaltonSampleSource.cpp
►
HaltonSampleSource.h
►
RuntimeSampleSource.h
►
SampleSource.h
►
sdl_halton_randomization_types.h
StratifiedSampleSource.cpp
►
StratifiedSampleSource.h
UniformRandomSampleSource.cpp
►
UniformRandomSampleSource.h
►
Session
►
Visualizer
►
CoreCookedUnit.cpp
►
CoreCookedUnit.h
►
CoreCookingContext.h
►
CoreSdlResource.h
►
EAccelerator.h
►
sdl_accelerator_type.h
►
Frame
►
Math
►
SDL
►
Utility
►
World
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
Loading...
Searching...
No Matches
SampleSource.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
SampleSource
:
public
CoreSdlResource
10
{
11
public
:
12
static
constexpr
ESdlTypeCategory
CATEGORY
=
ESdlTypeCategory::Ref_SampleSource
;
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<SampleSource>
)
21
{
22
ClassType clazz(
"sample-source"
);
23
clazz.docName(
"Sample Source"
);
24
clazz.description(
"Engine component for generating sample values."
);
25
return
clazz;
26
}
20
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<SampleSource>
) {
…
}
27
};
9
class
SampleSource
:
public
CoreSdlResource
{
…
};
28
29
// In-header Implementations:
30
31
inline
ESdlTypeCategory
SampleSource::getDynamicCategory
()
const
32
{
33
return
CATEGORY
;
34
}
31
inline
ESdlTypeCategory
SampleSource::getDynamicCategory
()
const
{
…
}
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::SampleSource
Definition
SampleSource.h:10
ph::SampleSource::CATEGORY
static constexpr ESdlTypeCategory CATEGORY
Definition
SampleSource.h:12
ph::SampleSource::PH_DEFINE_SDL_CLASS
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< SampleSource >)
Definition
SampleSource.h:20
ph::SampleSource::cook
void cook(const CoreCookingContext &ctx, CoreCookedUnit &cooked) override=0
ph::SampleSource::getDynamicCategory
ESdlTypeCategory getDynamicCategory() const override
Definition
SampleSource.h:31
ph::TSdlOwnerClass
SDL binding type for a canonical SDL resource class.
Definition
TSdlOwnerClass.h:23
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
ph::ESdlTypeCategory
ESdlTypeCategory
Definition
ESdlTypeCategory.h:15
ph::ESdlTypeCategory::Ref_SampleSource
@ Ref_SampleSource
sdl_interface.h
Source
EngineEnv
SampleSource
SampleSource.h
Generated by
1.11.0