t
Loading...
Searching...
No Matches
Light.hpp
1#include "primitives/Object3D.hpp"
2
3#ifndef LIGHT_HPP
4#define LIGHT_HPP
5
6namespace t {
7
17class Light : public Object3D {
18public:
27 bool isLight() const override { return true; }
28
37 virtual bool isAmbientLight() const { return false; }
38
47 virtual bool isPointLight() const { return false; }
48
56 virtual bool isDirectionalLight() const { return false; }
57
65 virtual bool isSpotLight() const { return false; }
66};
67
68} // namespace t
69
70#endif // LIGHT_HPP
The base lighting class.
Definition Light.hpp:17
virtual bool isSpotLight() const
Returns whether or not this light is a spot light.
Definition Light.hpp:65
virtual bool isPointLight() const
Returns whether or not this light is a point light.
Definition Light.hpp:47
virtual bool isAmbientLight() const
Returns whether or not this light is an ambient light.
Definition Light.hpp:37
virtual bool isDirectionalLight() const
Returns whether or not this light is a directional light.
Definition Light.hpp:56
bool isLight() const override
Returns whether or not this 3D object is a light.
Definition Light.hpp:27
The 3D object class.
Definition Object3D.hpp:24
The t software 3D graphics library namespace.
Definition algorithms.hpp:12