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
►
Basic
▼
Dome
AImageDome.cpp
►
AImageDome.h
►
APreethamDome.cpp
►
APreethamDome.h
►
Geometry
►
Image
►
Light
►
Material
►
ModelParser
►
MotionSource
►
SDLExtension
►
Actor.cpp
►
Actor.h
►
ADome.cpp
►
ADome.h
AMaskedModel.cpp
►
AMaskedModel.h
►
AModel.cpp
►
AModel.h
APhantomModel.cpp
►
APhantomModel.h
►
ATransformedInstance.cpp
►
ATransformedInstance.h
ModelBuilder.cpp
ModelBuilder.h
ModelLoader.cpp
ModelLoader.h
PhysicalActor.cpp
►
PhysicalActor.h
StandaloneSdlResource.h
►
Api
►
Common
►
Core
►
DataIO
►
EngineEnv
►
Frame
►
Math
►
SDL
►
Utility
►
World
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
Loading...
Searching...
No Matches
AImageDome.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Actor/ADome.h
"
4
#include "
DataIO/FileSystem/ResourceIdentifier.h
"
5
#include "
Core/Texture/TTexture.h
"
6
#include "
Math/Color/Spectrum.h
"
7
#include "
SDL/sdl_interface.h
"
8
9
#include <memory>
10
11
namespace
ph
12
{
13
17
class
AImageDome
:
public
ADome
18
{
19
public
:
20
std::shared_ptr<TTexture<math::Spectrum>>
loadRadianceFunction
(
21
const
CookingContext
& ctx,
DomeRadianceFunctionInfo
* out_info)
const override
;
22
23
private
:
24
ResourceIdentifier
m_imageFile;
25
26
public
:
27
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<AImageDome>
)
28
{
29
ClassType clazz(
"image-dome"
);
30
clazz.docName(
"Image Dome Actor"
);
31
clazz.description(
"Using a background image to represent the energy emitted from far away."
);
32
clazz.baseOn<
ADome
>();
33
34
TSdlResourceIdentifier<OwnerType>
imageFile(
"image-file"
, &OwnerType::m_imageFile);
35
imageFile.description(
"An image describing the energy distribution."
);
36
imageFile.required();
37
clazz.addField(imageFile);
38
39
return
clazz;
40
}
27
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<AImageDome>
) {
…
}
41
};
17
class
AImageDome
:
public
ADome
{
…
};
42
43
}
// end namespace ph
ADome.h
ResourceIdentifier.h
Spectrum.h
TTexture.h
ph::ADome
An actor that models the sky of the scene. Model the sky in latitude-longitude format....
Definition
ADome.h:26
ph::AImageDome
Model the sky of the scene with an image. Using a background image to represent the energy emitted fr...
Definition
AImageDome.h:18
ph::AImageDome::PH_DEFINE_SDL_CLASS
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< AImageDome >)
Definition
AImageDome.h:27
ph::AImageDome::loadRadianceFunction
std::shared_ptr< TTexture< math::Spectrum > > loadRadianceFunction(const CookingContext &ctx, DomeRadianceFunctionInfo *out_info) const override
Definition
AImageDome.cpp:7
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::ResourceIdentifier
An general identifier that points to some resource. This is the most general form of a resource ident...
Definition
ResourceIdentifier.h:20
ph::TSdlOwnerClass
SDL binding type for a canonical SDL resource class.
Definition
TSdlOwnerClass.h:23
ph::TSdlResourceIdentifier
A field class that binds a resource identifier member. Though the member type that is binded by defau...
Definition
TSdlResourceIdentifier.h:28
ph
The root for all renderer implementations.
Definition
EEngineProject.h:6
sdl_interface.h
ph::DomeRadianceFunctionInfo
Definition
ADome.h:16
Source
Actor
Dome
AImageDome.h
Generated by
1.11.0