Aether3D Game Engine
All Classes Namespaces Functions Variables Enumerations Pages
DirectionalLightComponent.hpp
1 #ifndef DIRECTIONAL_LIGHT_HPP
2 #define DIRECTIONAL_LIGHT_HPP
3 
4 #include <string>
5 #include "RenderTexture.hpp"
6 
7 namespace ae3d
8 {
11  {
12  public:
14  bool CastsShadow() const { return castsShadow; }
15 
18  void SetCastShadow( bool enable, int shadowMapSize );
19 
21  std::string GetSerialized() const;
22 
23  private:
24  friend class GameObject;
25  friend class Scene;
26 
28  static int Type() { return 6; }
29 
31  static unsigned New();
32 
34  static DirectionalLightComponent* Get( unsigned index );
35 
36  RenderTexture shadowMap;
37  bool castsShadow = false;
38  };
39 }
40 #endif
Definition: AudioClip.hpp:4
Directional light illuminates the scene from a given direction. Ideal for sunlight.
Definition: DirectionalLightComponent.hpp:10
void SetCastShadow(bool enable, int shadowMapSize)
GameObject is composed of components that define its behavior.
Definition: GameObject.hpp:9
bool CastsShadow() const
Definition: DirectionalLightComponent.hpp:14
std::string GetSerialized() const
Contains game objects in a transform hierarchy.
Definition: Scene.hpp:16