add RageTextureID::equal

This commit is contained in:
Glenn Maynard
2003-01-09 02:55:16 +00:00
parent 2171a071dc
commit 379b4806ef
2 changed files with 15 additions and 0 deletions
+13
View File
@@ -24,6 +24,19 @@ void RageTextureID::Init()
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 )
{
// LOG->Trace( "RageTexture::RageTexture()" );
+2
View File
@@ -32,6 +32,8 @@ struct RageTextureID
/* Define an ordering so this can be used in a set<>. */
bool operator< (const RageTextureID &rhs) const { return filename < rhs.filename; }
bool equal(const RageTextureID &rhs) const;
void Init();
RageTextureID() { Init(); }