/* Copyright (c) 2013 "LliureX" Framebuffer boot splash This file is part of Bootcookie. Bootcookie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef _BOOTCOOKIE_GFX_ #define _BOOTCOOKIE_GFX_ #include #define TGA_TYPE_RGB 2 #define TGA_TYPE_8BPP_RLE 9 #define TGA_TYPE_RGB_RLE 10 namespace net { namespace lliurex { namespace bootcookie { class Palette { public: uint8_t red[256]; uint8_t green[256]; uint8_t blue[256]; Palette(); void Load(const char * filename); int MatchColor(uint8_t red,uint8_t green,uint8_t blue); }; class Surface { public: int width; int height; uint8_t * pixels; Surface(const char * filename); ~Surface(); }; } } } #endif