1
1
forked from 0ad/0ad
0ad/source/dcdt/se/sr_light.cpp
janwas 5bf9bca9ef fix/disable warnings.
there are too many W4 and "potentially uninitialized", so those are
disabled by 0ad_warning_disable.h.

the silly "int x = strlen" and very dangerous "int x = (void*)p" (and
vice versa) problems are fixed.

This was SVN commit r5526.
2007-12-23 12:18:57 +00:00

31 lines
669 B
C++

#include "precompiled.h"
#include "0ad_warning_disable.h"
# include "sr_light.h"
//===================================== SrLight ================================
SrLight::SrLight ()
{
init ();
}
void SrLight::init ()
{
spot_exponent = 0;
spot_direction.set ( 0, 0, -1.0f );
spot_cutoff = 180;
constant_attenuation = 1.0f;
linear_attenuation = 0;
quadratic_attenuation = 0;
ambient = SrColor::black;
diffuse = SrColor::white;
specular = SrColor::black;
position = SrVec::k;
directional = true;
}
//================================ End of File =================================================