Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (14 sloc) 0.417 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef SURFACE_PALETTE_HPP_INCLUDED
#define SURFACE_PALETTE_HPP_INCLUDED

#include <string>

#include "color_utils.hpp"
#include "surface.hpp"

namespace graphics
{

int get_palette_id(const std::string& name);
const std::string& get_palette_name(int id);

surface map_palette(surface s, int palette);
color map_palette(const color& c, int palette);
SDL_Color map_palette(const SDL_Color& c, int palette);
}

#endif
Something went wrong with that request. Please try again.