diff --git a/neo/d3xp/Light.cpp b/neo/d3xp/Light.cpp index 7bbb149e..98b79957 100644 --- a/neo/d3xp/Light.cpp +++ b/neo/d3xp/Light.cpp @@ -481,6 +481,16 @@ void idLight::SetColor( float red, float green, float blue ) { SetLightLevel(); } +/* +================ +idLight::SetColor +================ +*/ +void idLight::SetColor( const idVec3 &color ) { + baseColor = color; + SetLightLevel(); +} + /* ================ idLight::SetColor diff --git a/neo/d3xp/Light.h b/neo/d3xp/Light.h index 851bf02f..340a0b9a 100644 --- a/neo/d3xp/Light.h +++ b/neo/d3xp/Light.h @@ -64,6 +64,7 @@ public: void SaveState( idDict *args ); virtual void SetColor( float red, float green, float blue ); + virtual void SetColor( const idVec3 &color ); virtual void SetColor( const idVec4 &color ); virtual void GetColor( idVec3 &out ) const; virtual void GetColor( idVec4 &out ) const; diff --git a/neo/game/Light.cpp b/neo/game/Light.cpp index b1b3a792..558e04e3 100644 --- a/neo/game/Light.cpp +++ b/neo/game/Light.cpp @@ -474,6 +474,16 @@ void idLight::SetColor( float red, float green, float blue ) { SetLightLevel(); } +/* +================ +idLight::SetColor +================ +*/ +void idLight::SetColor( const idVec3 &color ) { + baseColor = color; + SetLightLevel(); +} + /* ================ idLight::SetColor diff --git a/neo/game/Light.h b/neo/game/Light.h index 851bf02f..340a0b9a 100644 --- a/neo/game/Light.h +++ b/neo/game/Light.h @@ -64,6 +64,7 @@ public: void SaveState( idDict *args ); virtual void SetColor( float red, float green, float blue ); + virtual void SetColor( const idVec3 &color ); virtual void SetColor( const idVec4 &color ); virtual void GetColor( idVec3 &out ) const; virtual void GetColor( idVec4 &out ) const; diff --git a/neo/idlib/math/Simd_SSE.h b/neo/idlib/math/Simd_SSE.h index e9deef1e..752894d7 100644 --- a/neo/idlib/math/Simd_SSE.h +++ b/neo/idlib/math/Simd_SSE.h @@ -42,6 +42,9 @@ If you have questions concerning this license or the applicable additional terms class idSIMD_SSE : public idSIMD_MMX { public: #if defined(__GNUC__) && defined(__SSE__) + using idSIMD_MMX::Dot; + using idSIMD_MMX::MinMax; + virtual const char * VPCALL GetName( void ) const; virtual void VPCALL Dot( float *dst, const idPlane &constant,const idDrawVert *src, const int count ); virtual void VPCALL MinMax( idVec3 &min, idVec3 &max, const idDrawVert *src, const int *indexes, const int count ); diff --git a/neo/idlib/math/Simd_SSE2.h b/neo/idlib/math/Simd_SSE2.h index 34992cc2..ed880d38 100644 --- a/neo/idlib/math/Simd_SSE2.h +++ b/neo/idlib/math/Simd_SSE2.h @@ -42,6 +42,8 @@ If you have questions concerning this license or the applicable additional terms class idSIMD_SSE2 : public idSIMD_SSE { public: #if defined(__GNUC__) && defined(__SSE2__) + using idSIMD_SSE::CmpLT; + virtual const char * VPCALL GetName( void ) const; virtual void VPCALL CmpLT( byte *dst, const byte bitNum, const float *src0, const float constant, const int count );