diff pytouhou/game/background.py @ 92:85f3b8ba3f24

Minor refactoring and optimizations. Drop stageviewer.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 04 Sep 2011 17:33:40 +0200
parents 630e9045e851
children ca571697ec83
line wrap: on
line diff
--- a/pytouhou/game/background.py
+++ b/pytouhou/game/background.py
@@ -85,6 +85,10 @@ class Background(object):
             self.objects.append(faces)
 
 
+    def get_objects_by_texture(self, objects_by_texture):
+        objects_by_texture.update(self.objects_by_texture)
+
+
     def update(self, frame):
         if not self.objects_by_texture:
             vertices, uvs, colors = self.object_instances_to_vertices_uvs_colors()