The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Variables
image_modifications.cpp File Reference
#include "color_range.hpp"
#include "config.hpp"
#include "display.hpp"
#include "game_config.hpp"
#include "image.hpp"
#include "image_modifications.hpp"
#include "log.hpp"
#include "sdl/alpha.hpp"
#include "serialization/string_utils.hpp"
#include <map>
Include dependency graph for image_modifications.cpp:

Go to the source code of this file.

Namespaces

 image
 this module manages the cache of images.
 

Macros

#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. More...
 

Variables

static lg::log_domain log_display ("display")
 

Macro Definition Documentation

#define ERR_DP   LOG_STREAM(err, log_display)
#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 27 of file image_modifications.cpp.

#define LOG_DP   LOG_STREAM(info, log_display)

Definition at line 31 of file image_modifications.cpp.

#define REGISTER_MOD_PARSER (   type,
  args_var 
)
Value:
static modification* parse_##type##_mod(const std::string&); \
static parse_mod_registration parse_##type##_mod_registration_aux(#type, &parse_##type##_mod); \
static modification* parse_##type##_mod(const std::string& args_var) \
GLuint GLuint GLsizei GLenum type
Definition: glew.h:1221
GLsizei const GLcharARB ** string
Definition: glew.h:4503

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

Parameters
typeThe modification type to be registered (unquoted)
args_varThe name for the string argument provided

Definition at line 565 of file image_modifications.cpp.

Variable Documentation

lg::log_domain log_display("display")
static