Aether3D Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
PointLightComponent.hpp
1
#ifndef POINT_LIGHT_HPP
2
#define POINT_LIGHT_HPP
3
4
#include <string>
5
#include "RenderTexture.hpp"
6
7
namespace
ae3d
8
{
10
class
PointLightComponent
11
{
12
public
:
14
class
GameObject
*
GetGameObject
()
const
{
return
gameObject; }
15
17
bool
CastsShadow
()
const
{
return
castsShadow; }
18
21
void
SetCastShadow
(
bool
enable,
int
shadowMapSize );
22
24
float
GetRadius
()
const
{
return
radius; }
25
27
void
SetRadius
(
float
aRadius ) { radius = aRadius; }
28
30
std::string
GetSerialized
()
const
;
31
32
private
:
33
friend
class
GameObject
;
34
friend
class
Scene
;
35
37
static
int
Type() {
return
8; }
38
40
static
unsigned
New();
41
43
static
PointLightComponent
* Get(
unsigned
index );
44
45
RenderTexture
shadowMap;
46
float
radius = 10;
47
GameObject
* gameObject =
nullptr
;
48
bool
castsShadow =
false
;
49
};
50
}
51
#endif
ae3d::PointLightComponent::SetCastShadow
void SetCastShadow(bool enable, int shadowMapSize)
ae3d::PointLightComponent::GetRadius
float GetRadius() const
Definition:
PointLightComponent.hpp:24
ae3d
Definition:
AudioClip.hpp:4
ae3d::RenderTexture
Render texture.
Definition:
RenderTexture.hpp:12
ae3d::PointLightComponent::CastsShadow
bool CastsShadow() const
Definition:
PointLightComponent.hpp:17
ae3d::PointLightComponent
Point light illuminates the scene from a given position into all directions.
Definition:
PointLightComponent.hpp:10
ae3d::PointLightComponent::GetSerialized
std::string GetSerialized() const
ae3d::GameObject
GameObject is composed of components that define its behavior.
Definition:
GameObject.hpp:9
ae3d::PointLightComponent::GetGameObject
class GameObject * GetGameObject() const
Definition:
PointLightComponent.hpp:14
ae3d::Scene
Contains game objects in a transform hierarchy.
Definition:
Scene.hpp:17
ae3d::PointLightComponent::SetRadius
void SetRadius(float aRadius)
Definition:
PointLightComponent.hpp:27
Generated on Mon Jul 4 2016 15:40:48 for Aether3D Game Engine by
1.8.11