16 #include <SDL_image.h>
34 std::cerr <<
"Loading masks...\n";
40 std::cerr <<
"Loading images...\n";
43 if(src_surface ==
nullptr)
47 if(dest_surface ==
nullptr)
51 std::cerr <<
"Cutting images...\n";
56 for(cutter::surface_map::const_iterator
itor = dest_surfaces.begin();
57 itor != dest_surfaces.end(); ++
itor) {
61 if(src_surfaces.find(name) == src_surfaces.end())
71 std::cerr <<
"Warning: element " << name <<
" not empty on destination image\n";
75 std::cerr <<
"Inserting image " << name
76 <<
" on position (" << dest_ps.
pos.
x
77 <<
", " << dest_ps.
pos.
y <<
")\n";
void set_verbose(bool value)
surface compose(const std::string &src, const std::string &dest)
surface_map cut_surface(surface surf, const config &conf)
std::multimap< std::string, positioned_surface > surface_map
const config load_config(const std::string &filename)
void set_interactive(bool value)
void set_verbose(bool value)
void masked_overwrite_surface(surface dest, surface src, surface mask, int x, int y)
GLsizei const GLfloat * value
std::map< std::string, tfilter >::iterator itor
GLuint const GLchar * name
surface make_neutral_surface(const surface &surf)
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
bool image_empty(surface surf)
void load_masks(const config &conf)