make hot pinking a texture hint

(it makes SDL take slow code paths and makes us do
conversions we oftne don't need to)
This commit is contained in:
Glenn Maynard
2003-01-22 04:15:43 +00:00
parent 4914fa6f9e
commit 4432b01dd8
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -22,6 +22,7 @@ void RageTextureID::Init()
bDither = false; bDither = false;
bStretch = false; bStretch = false;
iColorDepth = TEXTUREMAN->GetTextureColorDepth(); iColorDepth = TEXTUREMAN->GetTextureColorDepth();
bHotPinkColorKey = false;
} }
bool RageTextureID::equal(const RageTextureID &rhs) const bool RageTextureID::equal(const RageTextureID &rhs) const
@@ -33,6 +34,7 @@ bool RageTextureID::equal(const RageTextureID &rhs) const
if(iColorDepth != rhs.iColorDepth) return false; if(iColorDepth != rhs.iColorDepth) return false;
if(bDither != rhs.bDither) return false; if(bDither != rhs.bDither) return false;
if(bStretch != rhs.bStretch) return false; if(bStretch != rhs.bStretch) return false;
if(bHotPinkColorKey != rhs.bHotPinkColorKey) return false;
return true; return true;
} }
+1
View File
@@ -29,6 +29,7 @@ struct RageTextureID
int iColorDepth; int iColorDepth;
bool bDither; bool bDither;
bool bStretch; bool bStretch;
bool bHotPinkColorKey; /* #FF00FF */
/* Define an ordering so this can be used in a set<>. This defines a partial /* Define an ordering so this can be used in a set<>. This defines a partial
* ordering; use equal() to see if they're equal. */ * ordering; use equal() to see if they're equal. */