Mercurial > touhou
diff pytouhou/opengl/texture.py @ 25:cc864aadc733
Preload enemy and background textures
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 12 Aug 2011 19:25:08 +0200 |
parents | 66ce9bb440ac |
children | ab826bc29aa2 |
line wrap: on
line diff
--- a/pytouhou/opengl/texture.py +++ b/pytouhou/opengl/texture.py @@ -19,6 +19,12 @@ class TextureManager(object): return self.textures[key] + def preload(self, anms): + for anm in anms: + key = anm.first_name, anm.secondary_name + texture = self[key] + + def set_archive(self, archive): self.archive = archive