def display(transition): # Displays two parts for maps: # Displays fist layer 0 -> 3, then answers EntityManager to display entities and finally display layer 4 -> 7 sm.updateLink("texture", "model", MapRender.model.matrix) tm.bind(MapRender.currentTileSet) MapRender.shapeDown.display() em.EntityManager.display() sm.updateLink("texture", "model", MapRender.model.matrix) tm.bind(MapRender.currentTileSet) MapRender.shapeUp.display() if transition: MapRender.transitionShape.display()
def bind(self): tm.bind(self.fontTexture)
def display(self): sm.updateLink("texture", "model", self.model.matrix) tm.bind(self.texKey) self.shape.display()
def display(): sm.updateLink("texture-hud", "model", Hud.model.matrix) tm.bind("hud") Hud.shape.display()