Files
Aerofoil/PortabilityLayer/AntiAliasTable.h

18 lines
392 B
C
Raw Normal View History

#pragma once
2020-06-05 23:21:56 -04:00
#include <stdint.h>
namespace PortabilityLayer
{
struct RGBAColor;
2020-06-05 23:21:56 -04:00
struct AntiAliasTable
{
// 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);
2020-06-13 04:33:41 -04:00
void GenerateForSimpleScale(uint8_t colorChannel);
};
}