#include "global.hpp"
#include <map>
#include <string>
#include <vector>
#include "SDL_types.h"
Go to the source code of this file.
Classes | |
class | color_range |
Functions | |
std::vector< Uint32 > | string2rgb (std::string s) |
Convert comma separated string into rgb values. | |
std::vector< Uint32 > | palette (color_range cr) |
std::map< Uint32, Uint32 > | recolor_range (const color_range &new_rgb, const std::vector< Uint32 > &old_rgb) |
std::string | rgb2highlight (Uint32 rgb) |
Definition in file color_range.hpp.
std::vector<Uint32> palette | ( | color_range | cr | ) |
Definition at line 126 of file color_range.cpp.
References recolor_range().
Referenced by game_config::add_color_info().
std::map<Uint32, Uint32> recolor_range | ( | const color_range & | new_rgb, | |
const std::vector< Uint32 > & | old_rgb | |||
) |
Definition at line 31 of file color_range.cpp.
References color_range::max(), color_range::mid(), and color_range::min().
Referenced by image::locator::load_image_sub_file(), and palette().
std::string rgb2highlight | ( | Uint32 | rgb | ) |
Definition at line 154 of file color_range.cpp.
Referenced by team::get_side_highlight(), and events::menu_handler::unit_list().
std::vector<Uint32> string2rgb | ( | std::string | s | ) |
Convert comma separated string into rgb values.
Definition at line 93 of file color_range.cpp.
References lexical_cast(), and utils::split().
Referenced by game_config::add_color_info(), game_config::color_info(), game_config::load_config(), terrain_label::read(), game_config::tc_info(), and team::team_info::team_info().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |