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
►
Geometry
►
Image
▼
Light
AAreaLight.cpp
►
AAreaLight.h
►
AGeometricLight.cpp
►
AGeometricLight.h
AIesAttenuatedLight.cpp
►
AIesAttenuatedLight.h
ALight.cpp
►
ALight.h
AModelLight.cpp
►
AModelLight.h
APointLight.cpp
►
APointLight.h
ARectangleLight.cpp
►
ARectangleLight.h
ASphereLight.cpp
►
ASphereLight.h
►
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
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
}
18
PH_DEFINE_SDL_CLASS
(
TSdlOwnerClass<APointLight>
) {
…
}
29
};
9
class
APointLight
:
public
AAreaLight
{
…
};
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