rayzor

diff src/light.cc @ 1:a826bf0fb169

fixed line endings
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 09:05:26 +0300
parents 2a5340a6eee4
children d94a69933a71
line diff
     1.1 --- a/src/light.cc	Sat Apr 05 08:46:27 2014 +0300
     1.2 +++ b/src/light.cc	Sat Apr 05 09:05:26 2014 +0300
     1.3 @@ -1,41 +1,41 @@
     1.4 -#include "light.h"
     1.5 -
     1.6 -Light::Light()
     1.7 -{
     1.8 -	color.x = color.y = color.z = 1.0;
     1.9 -	atten.x = 1.0;
    1.10 -	atten.y = 0.0;
    1.11 -	atten.z = 0.0;
    1.12 -}
    1.13 -
    1.14 -void Light::set_position(const Vector3 &pos)
    1.15 -{
    1.16 -	this->pos = pos;
    1.17 -}
    1.18 -
    1.19 -const Vector3 &Light::get_position() const
    1.20 -{
    1.21 -	return pos;
    1.22 -}
    1.23 -
    1.24 -
    1.25 -void Light::set_color(const Vector3 &color)
    1.26 -{
    1.27 -	this->color = color;
    1.28 -}
    1.29 -
    1.30 -const Vector3 &Light::get_color() const
    1.31 -{
    1.32 -	return color;
    1.33 -}
    1.34 -
    1.35 -
    1.36 -void Light::set_attenuation(const Vector3 &atten)
    1.37 -{
    1.38 -	this->atten = atten;
    1.39 -}
    1.40 -
    1.41 -const Vector3 &Light::get_attenuation() const
    1.42 -{
    1.43 -	return atten;
    1.44 -}
    1.45 +#include "light.h"
    1.46 +
    1.47 +Light::Light()
    1.48 +{
    1.49 +	color.x = color.y = color.z = 1.0;
    1.50 +	atten.x = 1.0;
    1.51 +	atten.y = 0.0;
    1.52 +	atten.z = 0.0;
    1.53 +}
    1.54 +
    1.55 +void Light::set_position(const Vector3 &pos)
    1.56 +{
    1.57 +	this->pos = pos;
    1.58 +}
    1.59 +
    1.60 +const Vector3 &Light::get_position() const
    1.61 +{
    1.62 +	return pos;
    1.63 +}
    1.64 +
    1.65 +
    1.66 +void Light::set_color(const Vector3 &color)
    1.67 +{
    1.68 +	this->color = color;
    1.69 +}
    1.70 +
    1.71 +const Vector3 &Light::get_color() const
    1.72 +{
    1.73 +	return color;
    1.74 +}
    1.75 +
    1.76 +
    1.77 +void Light::set_attenuation(const Vector3 &atten)
    1.78 +{
    1.79 +	this->atten = atten;
    1.80 +}
    1.81 +
    1.82 +const Vector3 &Light::get_attenuation() const
    1.83 +{
    1.84 +	return atten;
    1.85 +}