22#ifndef BACKENDS_GRAPHICS_DEFAULT_PALETTE_H
23#define BACKENDS_GRAPHICS_DEFAULT_PALETTE_H
25#include "graphics/paletteman.h"
37 byte _palette[3 * 256];
48 void setPalette(
const byte *colors, uint start, uint num) {
49 assert(start + num <= 256);
50 memcpy(_palette + 3 * start, colors, 3 * num);
54 assert(start + num <= 256);
55 memcpy(colors, _palette + 3 * start, 3 * num);
Definition: default-palette.h:35
virtual void setPaletteIntern(const byte *colors, uint start, uint num)=0
void grabPalette(byte *colors, uint start, uint num) const
Definition: default-palette.h:53
void setPalette(const byte *colors, uint start, uint num)
Definition: default-palette.h:48
Definition: paletteman.h:47