Move more stuff to Common
This commit is contained in:
parent
4e89174b85
commit
ab560d9224
4 changed files with 25 additions and 23 deletions
|
@ -2264,3 +2264,17 @@ void TextureCacheCommon::LoadTextureLevel(TexCacheEntry &entry, uint8_t *data, i
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
CheckAlphaResult TextureCacheCommon::CheckCLUTAlpha(const uint8_t *pixelData, GEPaletteFormat clutFormat, int w) {
|
||||
switch (clutFormat) {
|
||||
case GE_CMODE_16BIT_ABGR4444:
|
||||
return CheckAlpha16((const u16 *)pixelData, w, 0xF000);
|
||||
case GE_CMODE_16BIT_ABGR5551:
|
||||
return CheckAlpha16((const u16 *)pixelData, w, 0x8000);
|
||||
case GE_CMODE_16BIT_BGR5650:
|
||||
// Never has any alpha.
|
||||
return CHECKALPHA_FULL;
|
||||
default:
|
||||
return CheckAlpha32((const u32 *)pixelData, w, 0xFF000000); // note, the normal order here, unlike the 16-bit formats
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue