[Commits] [wesnoth/wesnoth] 9a97ae: Added a texture cache

GitHub noreply at github.com
Tue Jun 6 17:58:35 UTC 2017


  Branch: refs/heads/accelerated_rendering
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 9a97aec184285b83a45dcc02cae6c64b553e9992
      https://github.com/wesnoth/wesnoth/commit/9a97aec184285b83a45dcc02cae6c64b553e9992
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M src/image.cpp
    M src/image.hpp

  Log Message:
  -----------
  Added a texture cache

Note this probably doesn't work properly yet since I haven't properly implemented shared management
of textures in their wrapper class.


  Commit: 68d94088ab8573c52362091ddedb8fd345daa23d
      https://github.com/wesnoth/wesnoth/commit/68d94088ab8573c52362091ddedb8fd345daa23d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M src/sdl/texture.cpp
    M src/sdl/texture.hpp

  Log Message:
  -----------
  Texture: converted internal handling to use a shared_ptr

This allows multiple texture objects to refer to the same texture without destroying them prematurely.
This is different from the SDL_Surface wrapper's implementation since surfaces have their own internal
refcounting system; textures do not.


Compare: https://github.com/wesnoth/wesnoth/compare/89372cf190d7...68d94088ab85


More information about the Commits mailing list