mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-01 21:34:15 +00:00
25 lines
419 B
C
25 lines
419 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "RGBAColor.h"
|
||
|
|
|
||
|
|
namespace PortabilityLayer
|
||
|
|
{
|
||
|
|
class ResolveCachingColor
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
ResolveCachingColor(const RGBAColor &color);
|
||
|
|
ResolveCachingColor(const ResolveCachingColor &color);
|
||
|
|
|
||
|
|
uint8_t Resolve8(const RGBAColor *palette, unsigned int numColors);
|
||
|
|
|
||
|
|
private:
|
||
|
|
RGBAColor m_rgbaColor;
|
||
|
|
|
||
|
|
uint16_t m_resolved16;
|
||
|
|
uint8_t m_resolved8;
|
||
|
|
|
||
|
|
bool m_isResolved16;
|
||
|
|
bool m_isResolved8;
|
||
|
|
};
|
||
|
|
}
|