mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Adjust text AA to be more gamma-correct. Switch everything to Open Sans.
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include "AntiAliasTable.h"
|
||||
#include "RGBAColor.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
#include "AntiAliasTable.h"
|
||||
#include "RGBAColor.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
struct AntiAliasTable;
|
||||
|
||||
class StandardPalette
|
||||
{
|
||||
public:
|
||||
static const unsigned int kSize = 256;
|
||||
|
||||
StandardPalette();
|
||||
|
||||
const RGBAColor *GetColors() const;
|
||||
static uint8_t MapColorAnalyticTruncated(unsigned int r, unsigned int g, unsigned int b);
|
||||
static uint8_t MapColorAnalytic(uint8_t r, uint8_t g, uint8_t b);
|
||||
static uint8_t MapColorAnalytic(const RGBAColor &color);
|
||||
uint8_t MapColorLUT(uint8_t r, uint8_t g, uint8_t b) const;
|
||||
|
||||
class StandardPalette
|
||||
{
|
||||
public:
|
||||
static const unsigned int kSize = 256;
|
||||
|
||||
StandardPalette();
|
||||
|
||||
const RGBAColor *GetColors() const;
|
||||
static uint8_t MapColorAnalyticTruncated(unsigned int r, unsigned int g, unsigned int b);
|
||||
static uint8_t MapColorAnalytic(uint8_t r, uint8_t g, uint8_t b);
|
||||
static uint8_t MapColorAnalytic(const RGBAColor &color);
|
||||
uint8_t MapColorLUT(uint8_t r, uint8_t g, uint8_t b) const;
|
||||
uint8_t MapColorLUT(const RGBAColor &color) const;
|
||||
const AntiAliasTable &GetWhiteAATable() const;
|
||||
const AntiAliasTable &GetBlackAATable() const;
|
||||
|
||||
static const StandardPalette *GetInstance();
|
||||
|
||||
private:
|
||||
static StandardPalette ms_instance;
|
||||
|
||||
const AntiAliasTable &GetWhiteAATable() const;
|
||||
const AntiAliasTable &GetBlackAATable() const;
|
||||
|
||||
static const StandardPalette *GetInstance();
|
||||
|
||||
private:
|
||||
static StandardPalette ms_instance;
|
||||
|
||||
RGBAColor m_colors[kSize];
|
||||
AntiAliasTable m_whiteAATable;
|
||||
AntiAliasTable m_blackAATable;
|
||||
uint8_t m_lut[16 * 16 * 16];
|
||||
};
|
||||
}
|
||||
AntiAliasTable m_whiteAATable;
|
||||
AntiAliasTable m_blackAATable;
|
||||
uint8_t m_lut[16 * 16 * 16];
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user