Skip to content

Commit

Permalink
Add texture caches.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jun 11, 2014
1 parent 66fdc79 commit d80b478
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/image.cpp
Expand Up @@ -125,6 +125,10 @@ image::image_cache images_,
tod_colored_images_,
brightened_images_;

/** Rexture caches */
image::texture_cache txt_images_,
txt_hexed_images_;

// cache storing if each image fit in a hex
image::bool_cache in_hex_info_;

Expand Down
1 change: 1 addition & 0 deletions src/image.hpp
Expand Up @@ -133,6 +133,7 @@ namespace image {


typedef cache_type<surface> image_cache;
typedef cache_type<sdl::ttexture> texture_cache;
typedef cache_type<bool> bool_cache;

typedef std::map<t_translation::t_terrain, surface> mini_terrain_cache_map;
Expand Down

0 comments on commit d80b478

Please sign in to comment.