The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Functions
exploder_utils.hpp File Reference
#include "sdl/utils.hpp"
#include <string>
Include dependency graph for exploder_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  exploder_failure
 
struct  exploder_point
 
struct  exploder_rect
 

Functions

std::string get_mask_dir ()
 
std::string get_exploder_dir ()
 
void masked_overwrite_surface (surface dest, surface src, surface mask, int x, int y)
 
bool image_empty (surface surf)
 
void save_image (surface surf, const std::string &filename)
 

Function Documentation

std::string get_exploder_dir ( )

Definition at line 53 of file exploder_utils.cpp.

References game_config::path.

Referenced by cutter::find_configuration().

std::string get_mask_dir ( )

Definition at line 47 of file exploder_utils.cpp.

References game_config::path.

Referenced by cutter::load_masks().

bool image_empty ( surface  surf)

Definition at line 136 of file exploder_utils.cpp.

References surface_lock::pixels().

Referenced by composer::compose().

void masked_overwrite_surface ( surface  dest,
surface  src,
surface  mask,
int  x,
int  y 
)

Definition at line 62 of file exploder_utils.cpp.

References i, and surface_lock::pixels().

Referenced by composer::compose(), and main().

void save_image ( surface  surf,
const std::string filename 
)

Definition at line 169 of file exploder_utils.cpp.

References surface_lock::pixels(), and pos.