adding directional light actor
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include "PointLightActor.h"
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
PointLightActor::PointLightActor(PScene scene)
|
||||
: Actor(scene)
|
||||
{
|
||||
attachComponent<Component::PointLight>();
|
||||
}
|
||||
|
||||
PointLightActor::~PointLightActor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Component::PointLight& PointLightActor::getPointLightComponent()
|
||||
{
|
||||
return accessComponent<Component::PointLight>();
|
||||
}
|
||||
|
||||
const Component::PointLight& PointLightActor::getPointLightComponent() const
|
||||
{
|
||||
return accessComponent<Component::PointLight>();
|
||||
}
|
||||
Reference in New Issue
Block a user