Add PointLight in lightPoint.cc
This commit is contained in:
parent
e1ded8a9ad
commit
acdfb0fb60
3 changed files with 70 additions and 0 deletions
35
src/lightPoint.cc
Normal file
35
src/lightPoint.cc
Normal 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 */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue