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"
7#include "SDL/sdl_interface.h"
8
9#include <memory>
10
11namespace ph
12{
13
17class AImageDome : public ADome
18{
19public:
20 std::shared_ptr<TTexture<math::Spectrum>> loadRadianceFunction(
21 const CookingContext& ctx, DomeRadianceFunctionInfo* out_info) const override;
22
23private:
24 ResourceIdentifier m_imageFile;
25
26public:
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
An actor that models the sky of the scene. Model the sky in latitude-longitude format....
Definition ADome.h:26
Model the sky of the scene with an image. Using a background image to represent the energy emitted fr...
Definition AImageDome.h:18
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< AImageDome >)
Definition AImageDome.h:27
std::shared_ptr< TTexture< math::Spectrum > > loadRadianceFunction(const CookingContext &ctx, DomeRadianceFunctionInfo *out_info) const override
Definition AImageDome.cpp:7
Information about the world being cooked.
Definition CookingContext.h:24
An general identifier that points to some resource. This is the most general form of a resource ident...
Definition ResourceIdentifier.h:20
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
A field class that binds a resource identifier member. Though the member type that is binded by defau...
Definition TSdlResourceIdentifier.h:28
The root for all renderer implementations.
Definition EEngineProject.h:6
Definition ADome.h:16