The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
exploder_utils.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2004 - 2016 by Philippe Plantier <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef EXPLODER_UTILS_HPP_INCLUDED
16 #define EXPLODER_UTILS_HPP_INCLUDED
17 
18 #include "sdl/utils.hpp"
19 #include <string>
20 
22 {
24  message(message) {}
25 
27 };
28 
30 {
31  exploder_point() : x(0), y(0) {}
32  exploder_point(int x, int y) : x(x), y(y) {}
34 
35  int x;
36  int y;
37 };
38 
40 {
41  exploder_rect() : x(0), y(0), w(0), h(0) {}
42  exploder_rect(int x,int y, int w, int h) : x(x), y(y), w(w), h(h) {}
43  exploder_rect(const std::string &s);
44 
45  int x;
46  int y;
47  int w;
48  int h;
49 };
50 
53 
54 void masked_overwrite_surface(surface dest, surface src, surface mask, int x, int y);
56 void save_image(surface surf, const std::string &filename);
57 
58 #endif
void save_image(surface surf, const std::string &filename)
exploder_rect(int x, int y, int w, int h)
std::string message
void masked_overwrite_surface(surface dest, surface src, surface mask, int x, int y)
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1220
GLenum src
Definition: glew.h:2392
GLubyte GLubyte GLubyte GLubyte w
Definition: glew.h:1858
GLenum GLint GLuint mask
Definition: glew.h:1813
surf
Definition: filter.cpp:143
std::string get_mask_dir()
std::string get_exploder_dir()
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:5910
GLint GLint GLint GLint GLint x
Definition: glew.h:1220
bool image_empty(surface surf)
exploder_point(int x, int y)
exploder_failure(const std::string &message)
GLsizei GLenum GLuint GLuint GLsizei char * message
Definition: glew.h:2499
GLdouble s
Definition: glew.h:1358
GLsizei const GLcharARB ** string
Definition: glew.h:4503