#include "color_range.hpp"#include "config.hpp"#include "display.hpp"#include "foreach.hpp"#include "game_config.hpp"#include "image.hpp"#include "image_modifications.hpp"#include "log.hpp"#include "serialization/string_utils.hpp"#include <map>
Go to the source code of this file.
Namespaces | |
| namespace | image |
this module manages the cache of images. | |
Defines | |
| #define | GETTEXT_DOMAIN "wesnoth-lib" |
| #define | ERR_DP LOG_STREAM(err, log_display) |
| #define | LOG_DP LOG_STREAM(info, log_display) |
| #define | REGISTER_MOD_PARSER(type, args_var) |
| A macro for automatic modification parser registration. | |
Variables | |
| static lg::log_domain | log_display ("display") |
| #define ERR_DP LOG_STREAM(err, log_display) |
Definition at line 31 of file image_modifications.cpp.
Referenced by image::scale_modification::operator()(), and image::crop_modification::operator()().
| #define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 28 of file image_modifications.cpp.
| #define LOG_DP LOG_STREAM(info, log_display) |
Definition at line 32 of file image_modifications.cpp.
| #define REGISTER_MOD_PARSER | ( | type, | ||
| args_var | ||||
| ) |
modification* parse_##type##_mod(const std::string&); \ struct parse_##type##_mod_registration \ { \ parse_##type##_mod_registration() \ { \ mod_parsers[#type] = &parse_##type##_mod; \ } \ } parse_##type##_mod_registration_aux; \ modification* parse_##type##_mod(const std::string& args_var)
A macro for automatic modification parser registration.
It automatically registers the created parser in the mod_parsers map It should be used just like a function header (look at the uses below) It should only be used within an anonymous namespace
| type | The modification type to be registered (unquoted) | |
| args_var | The name for the string argument provided |
Definition at line 448 of file image_modifications.cpp.
lg::log_domain log_display("display") [static] |
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:05:23 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |