17 #define GETTEXT_DOMAIN "wesnoth-lib" 31 0x000000, 0x000000, 0x333333,
39 normal_rgb_(0x000000), selected_rgb_(0x000099), heading_rgb_(0x333333),
40 normal_alpha_(0.2), selected_alpha_(0.6), heading_alpha_(0.3),
41 max_img_w_(-1), max_img_h_(-1)
47 int normal_rgb,
int selected_rgb,
int heading_rgb,
48 double normal_alpha,
double selected_alpha,
double heading_alpha)
49 : img_base_(img_base), has_background_(has_bg), initialized_(false), load_failed_(false),
50 normal_rgb2_(normal_rgb), selected_rgb2_(selected_rgb), heading_rgb2_(heading_rgb),
51 normal_alpha2_(normal_alpha), selected_alpha2_(selected_alpha), heading_alpha2_(heading_alpha)
173 }
while( area.x < rect.x + rect.w );
183 }
while( area.y < rect.y + rect.h );
193 }
while( area.y < rect.y + rect.h );
203 }
while( area.x < rect.x + rect.w );
212 image =
img_map_[
"border-topright"];
213 area.x = rect.x + rect.w - image.
w();
221 area.y = rect.y + rect.h - image.
h();
226 image =
img_map_[
"border-botright"];
227 area.x = rect.x + rect.w - image.
w();
228 area.y = rect.y + rect.h - image.
h();
Drawing functions, for drawing things on the screen.
int w() const
The draw-space width of the texture, in pixels.
Collection of helper functions relating to Pango formatting.
New lexcical_cast header.
int h() const
The draw-space height of the texture, in pixels.
Wrapper class to encapsulate creation and management of an SDL_Texture.
void scale(size_t factor, const uint32_t *src, uint32_t *trg, int srcWidth, int srcHeight, const ScalerCfg &cfg=ScalerCfg(), int yFirst=0, int yLast=std::numeric_limits< int >::max())
clip_setter reduce_clip(const SDL_Rect &clip)
Set the clipping area to the intersection of the current clipping area and the given rectangle...
An abstract description of a rectangle with integer coordinates.
void blit(const texture &tex, const SDL_Rect &dst)
Draws a texture, or part of a texture, at the given location.
Functions to load and save images from/to disk.
texture get_texture(const image::locator &i_locator, TYPE type, bool skip_cache)
Returns an image texture suitable for hardware-accelerated rendering.