Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ALight.h
Go to the documentation of this file.
1#pragma once
2
4#include "SDL/sdl_interface.h"
5
6namespace ph
7{
8
9class ALight : public PhysicalActor
10{
11public:
16 TransientVisualElement cook(const CookingContext& ctx, const PreCookReport& report) const override = 0;
17
18public:
20 {
21 ClassType clazz("light");
22 clazz.docName("Light Actor");
23 clazz.description("The source of all energy emitting entity in the scene.");
24 clazz.baseOn<PhysicalActor>();
25
26 return clazz;
27 }
28};
29
30}// end namespace ph
Definition ALight.h:10
TransientVisualElement cook(const CookingContext &ctx, const PreCookReport &report) const override=0
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< ALight >)
Definition ALight.h:19
Information about the world being cooked.
Definition CookingContext.h:24
Definition PhysicalActor.h:18
Definition PreCookReport.h:13
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
A group of cooked data that represent the visible part of the scene at a specific time....
Definition TransientVisualElement.h:19
The root for all renderer implementations.
Definition EEngineProject.h:6