add AdditionalTextureHints

This commit is contained in:
Glenn Maynard
2003-10-08 02:52:12 +00:00
parent 5dc94af3da
commit 8dda57f5bc
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -48,6 +48,9 @@ void RageTextureID::Init()
/* If true, enable HOT PINK color keying. (deprecated but needed for /* If true, enable HOT PINK color keying. (deprecated but needed for
* banners) */ * banners) */
bHotPinkColorKey = false; bHotPinkColorKey = false;
/* These hints will be used in addition to any in the filename. */
AdditionalTextureHints = "";
} }
bool RageTextureID::operator<(const RageTextureID &rhs) const bool RageTextureID::operator<(const RageTextureID &rhs) const
@@ -62,6 +65,7 @@ bool RageTextureID::operator<(const RageTextureID &rhs) const
COMP(bDither); COMP(bDither);
COMP(bStretch); COMP(bStretch);
COMP(bHotPinkColorKey); COMP(bHotPinkColorKey);
COMP(AdditionalTextureHints);
#undef COMP #undef COMP
return false; return false;
} }
@@ -78,7 +82,8 @@ bool RageTextureID::operator==(const RageTextureID &rhs) const
EQUAL(iColorDepth) && EQUAL(iColorDepth) &&
EQUAL(bDither) && EQUAL(bDither) &&
EQUAL(bStretch) && EQUAL(bStretch) &&
EQUAL(bHotPinkColorKey); EQUAL(bHotPinkColorKey) &&
EQUAL(AdditionalTextureHints);
} }
+1
View File
@@ -30,6 +30,7 @@ struct RageTextureID
bool bDither; bool bDither;
bool bStretch; bool bStretch;
bool bHotPinkColorKey; /* #FF00FF */ bool bHotPinkColorKey; /* #FF00FF */
CString AdditionalTextureHints;
bool operator< (const RageTextureID &rhs) const; bool operator< (const RageTextureID &rhs) const;
bool operator== (const RageTextureID &rhs) const; bool operator== (const RageTextureID &rhs) const;