- Creada la paleta de sistema
This commit is contained in:
14
source/common/systempalette.h
Normal file
14
source/common/systempalette.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
namespace SystemPalette
|
||||
{
|
||||
// Vacía la paleta
|
||||
void Clear();
|
||||
|
||||
// Obtenemos el índice de la paleta para el color especificado. Si no existe se crea.
|
||||
uint8_t getEntry(const uint32_t color);
|
||||
|
||||
// Dado un índice, devolvemos su color
|
||||
uint32_t getRGBA(const uint8_t entry);
|
||||
}
|
||||
Reference in New Issue
Block a user