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
4#include "SDL/sdl_interface.h"
5
6namespace ph
7{
8
9class APointLight : public AAreaLight
10{
11public:
12 std::shared_ptr<Geometry> getArea(const CookingContext& ctx) const override;
13
14protected:
16
17public:
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
Definition AAreaLight.h:14
Definition APointLight.h:10
EmitterFeatureSet getEmitterFeatureSet() const override
Definition APointLight.cpp:24
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< APointLight >)
Definition APointLight.h:18
std::shared_ptr< Geometry > getArea(const CookingContext &ctx) const override
Definition APointLight.cpp:17
Information about the world being cooked.
Definition CookingContext.h:24
Manipulate a value type where each bit is a binary flag.
Definition TBitFlags.h:17
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
The root for all renderer implementations.
Definition EEngineProject.h:6