Photon Engine
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
APointLight.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Actor/Light/AAreaLight.h
"
4
#include "
SDL/sdl_interface.h
"
5
6
namespace
ph
7
{
8
9
class
APointLight
:
public
AAreaLight
10
{
11
public
:
12
std::shared_ptr<Geometry>
getArea
(
const
CookingContext
& ctx)
const override
;
13
14
protected
:
15
EmitterFeatureSet
getEmitterFeatureSet
()
const override
;
16
17
public
:
18
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<APointLight>
)
19
{
20
ClassType clazz(
"point-light"
);
21
clazz.docName(
"Point Light Actor"
);
22
clazz.description(
23
"Power emitting source from a small but not infinitesimal region. Resembling "
24
"a small light bulb."
);
25
clazz.baseOn<
AAreaLight
>();
26
27
return
clazz;
28
}
29
};
30
31
}
// end namespace ph
AAreaLight.h
ph::AAreaLight
Definition
AAreaLight.h:14
ph::APointLight
Definition
APointLight.h:10
ph::APointLight::getEmitterFeatureSet
EmitterFeatureSet getEmitterFeatureSet() const override
Definition
APointLight.cpp:24
ph::APointLight::PH_DEFINE_SDL_CLASS
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< APointLight >)
Definition
APointLight.h:18
ph::APointLight::getArea
std::shared_ptr< Geometry > getArea(const CookingContext &ctx) const override
Definition
APointLight.cpp:17
ph::CookingContext
Information about the world being cooked.
Definition
CookingContext.h:24
ph::TBitFlags
Manipulate a value type where each bit is a binary flag.
Definition
TBitFlags.h:17
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
sdl_interface.h
Source
Actor
Light
APointLight.h
Generated by
1.11.0