mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-26 14:21:18 +00:00
Fix -Woverloaded-virtual warnings
We want to use the SIMD functions of the base class if the deriving class does not implement every overloaded variant. Added missing idLight::SetColor(idVec3) which is declared in idEntity.
This commit is contained in:
parent
acdfb93552
commit
2c1186dc1b
6 changed files with 27 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue