mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Factor out back color
This commit is contained in:
24
PortabilityLayer/ResolveCachingColor.h
Normal file
24
PortabilityLayer/ResolveCachingColor.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user