add RageTextureID::equal
This commit is contained in:
@@ -24,6 +24,19 @@ void RageTextureID::Init()
|
|||||||
iColorDepth = TEXTUREMAN->GetTextureColorDepth();
|
iColorDepth = TEXTUREMAN->GetTextureColorDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool RageTextureID::equal(const RageTextureID &rhs) const
|
||||||
|
{
|
||||||
|
if(filename != rhs.filename) return false;
|
||||||
|
if(iMaxSize != rhs.iMaxSize) return false;
|
||||||
|
if(iMipMaps != rhs.iMipMaps) return false;
|
||||||
|
if(iAlphaBits != rhs.iAlphaBits) return false;
|
||||||
|
if(iColorDepth != rhs.iColorDepth) return false;
|
||||||
|
if(bDither != rhs.bDither) return false;
|
||||||
|
if(bStretch != rhs.bStretch) return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
RageTexture::RageTexture( RageTextureID name )
|
RageTexture::RageTexture( RageTextureID name )
|
||||||
{
|
{
|
||||||
// LOG->Trace( "RageTexture::RageTexture()" );
|
// LOG->Trace( "RageTexture::RageTexture()" );
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ struct RageTextureID
|
|||||||
|
|
||||||
/* Define an ordering so this can be used in a set<>. */
|
/* Define an ordering so this can be used in a set<>. */
|
||||||
bool operator< (const RageTextureID &rhs) const { return filename < rhs.filename; }
|
bool operator< (const RageTextureID &rhs) const { return filename < rhs.filename; }
|
||||||
|
bool equal(const RageTextureID &rhs) const;
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
RageTextureID() { Init(); }
|
RageTextureID() { Init(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user