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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user