Photon Engine
2.0.0-beta
A physically based renderer.
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
}
41
};
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