resonance 1.0.1
Loading...
Searching...
No Matches
apalette.h File Reference
#include <stddef.h>
#include <vector>
#include "os/mem.h"
Include dependency graph for apalette.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  APalette
 A 256 entry colour table an ABitmap points at. More...

Variables

constexpr int kAPaletteEntryCount = 256
 Entries a palette stores, one for every value an eight bit index can take.
constexpr int kAPaletteInverseEntryCount = 0x8000
 Entries in the inverse lookup table, one for every 1555 colour with the alpha bit cleared.

Variable Documentation

◆ kAPaletteEntryCount

int kAPaletteEntryCount = 256
constexpr

Entries a palette stores, one for every value an eight bit index can take.

◆ kAPaletteInverseEntryCount

int kAPaletteInverseEntryCount = 0x8000
constexpr

Entries in the inverse lookup table, one for every 1555 colour with the alpha bit cleared.