image.hpp File Reference

#include "map.hpp"
#include "sdl_utils.hpp"
#include "SDL.h"
#include <string>
#include <vector>

Include dependency graph for image.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  image

Classes

struct  image::cache_item< T >
class  image::locator
struct  image::locator::value
struct  image::manager
 the image manager is responsible for setting up images, and destroying all images when the program exits. More...

Typedefs

typedef std::vector
< cache_item< surface > > 
image::image_cache
typedef std::vector
< cache_item< locator > > 
image::locator_cache
typedef std::map
< t_translation::t_terrain,
surface
image::mini_terrain_cache_map

Enumerations

enum  image::TYPE {
  image::UNSCALED, image::HEXED, image::UNMASKED, image::SCALED_TO_HEX,
  image::SCALED_TO_ZOOM, image::BRIGHTENED, image::SEMI_BRIGHTENED
}

Functions

void image::flush_cache ()
void image::set_wm_icon ()
 function to set the program's icon to the window manager.
void image::set_colour_adjustment (int r, int g, int b)
 will make all scaled images have these rgb values added to all their pixels.
void image::set_team_colors (const std::vector< std::string > *colors=NULL)
 set the team colors used by the TC image modification use a vector with one string for each team using NULL will reset to default TC
void image::set_image_mask (const std::string &image_name)
 function which sets a certain image as a 'mask' for all scaled images.
void image::set_pixel_format (SDL_PixelFormat *format)
 sets the pixel format used by the images.
void image::set_zoom (int zoom)
 sets the amount scaled images should be scaled.
surface image::get_image (const locator &i_locator, TYPE type=UNSCALED, bool add_to_cache=true)
 function to get the surface corresponding to an image.
surface image::reverse_image (const surface &surf)
 function to reverse an image.
bool image::exists (const image::locator &i_locator)

Variables

const int image::tile_size = 72


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs