mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Add AA table caching
This commit is contained in:
@@ -11,7 +11,13 @@ namespace PortabilityLayer
|
||||
// Striped 256x16 because constant background color is more likely than constant sample
|
||||
uint8_t m_aaTranslate[256][16];
|
||||
|
||||
void GenerateForPalette(const RGBAColor &baseColor, const RGBAColor *colors, size_t numColors);
|
||||
void GenerateForSimpleScale(uint8_t colorChannel);
|
||||
void GenerateForPalette(const RGBAColor &baseColor, const RGBAColor *colors, size_t numColors, bool cacheable);
|
||||
void GenerateForSimpleScale(uint8_t colorChannel, bool cacheable);
|
||||
|
||||
private:
|
||||
bool LoadFromCache(const char *path);
|
||||
void SaveToCache(const char *path);
|
||||
|
||||
static const unsigned int kCacheVersion = 1;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user