add iGrayscaleBits
This commit is contained in:
@@ -26,6 +26,16 @@ void RageTextureID::Init()
|
|||||||
* this gives more bits for color values. (0, 1 or 4) */
|
* this gives more bits for color values. (0, 1 or 4) */
|
||||||
iAlphaBits = 4;
|
iAlphaBits = 4;
|
||||||
|
|
||||||
|
/* If this is greater than -1, then the image will be loaded as a luma/alpha
|
||||||
|
* map, eg. I4A4. At most 8 bits per pixel will be used This only actually happens
|
||||||
|
* when paletted textures are supported.
|
||||||
|
*
|
||||||
|
* If the sum of alpha and grayscale bits is <= 4, and the system supports 4-bit
|
||||||
|
* palettes, then the image will be loaded with 4bpp.
|
||||||
|
*
|
||||||
|
* This may be set to 0, resulting in an alpha map with all pixels white. */
|
||||||
|
iGrayscaleBits = -1;
|
||||||
|
|
||||||
/* If true and color precision is being lost, dither. (slow) */
|
/* If true and color precision is being lost, dither. (slow) */
|
||||||
bDither = false;
|
bDither = false;
|
||||||
/* If true, resize the image to fill the internal texture. (slow) */
|
/* If true, resize the image to fill the internal texture. (slow) */
|
||||||
@@ -47,6 +57,7 @@ bool RageTextureID::operator<(const RageTextureID &rhs) const
|
|||||||
COMP(iMaxSize);
|
COMP(iMaxSize);
|
||||||
COMP(iMipMaps);
|
COMP(iMipMaps);
|
||||||
COMP(iAlphaBits);
|
COMP(iAlphaBits);
|
||||||
|
COMP(iGrayscaleBits);
|
||||||
COMP(iColorDepth);
|
COMP(iColorDepth);
|
||||||
COMP(bDither);
|
COMP(bDither);
|
||||||
COMP(bStretch);
|
COMP(bStretch);
|
||||||
@@ -63,6 +74,7 @@ bool RageTextureID::operator==(const RageTextureID &rhs) const
|
|||||||
EQUAL(iMaxSize) &&
|
EQUAL(iMaxSize) &&
|
||||||
EQUAL(iMipMaps) &&
|
EQUAL(iMipMaps) &&
|
||||||
EQUAL(iAlphaBits) &&
|
EQUAL(iAlphaBits) &&
|
||||||
|
EQUAL(iGrayscaleBits) &&
|
||||||
EQUAL(iColorDepth) &&
|
EQUAL(iColorDepth) &&
|
||||||
EQUAL(bDither) &&
|
EQUAL(bDither) &&
|
||||||
EQUAL(bStretch) &&
|
EQUAL(bStretch) &&
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ struct RageTextureID
|
|||||||
int iMaxSize;
|
int iMaxSize;
|
||||||
int iMipMaps;
|
int iMipMaps;
|
||||||
int iAlphaBits;
|
int iAlphaBits;
|
||||||
|
int iGrayscaleBits;
|
||||||
int iColorDepth;
|
int iColorDepth;
|
||||||
bool bDither;
|
bool bDither;
|
||||||
bool bStretch;
|
bool bStretch;
|
||||||
|
|||||||
Reference in New Issue
Block a user