Add PointLight in lightPoint.cc

This commit is contained in:
Eryn Wells 2014-08-09 20:22:35 -07:00
parent e1ded8a9ad
commit acdfb0fb60
3 changed files with 70 additions and 0 deletions

35
src/lightPoint.cc Normal file
View file

@ -0,0 +1,35 @@
/* lightPoint.cc
* vim: set tw=80:
* Eryn Wells <eryn@erynwells.me>
*/
#include "lightPoint.hh"
using charles::basics::Vector4;
namespace charles {
PointLight::PointLight(const Vector4& origin,
const Color& color)
: Light(color),
mOrigin(origin)
{ }
Vector4
PointLight::GetOrigin()
{
return mOrigin;
}
void
PointLight::SetOrigin(const Vector4& origin)
{
mOrigin = origin;
}
} /* namespace charles */