Пример #1
0
    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()
Пример #2
0
 def bind(self):
     tm.bind(self.fontTexture)
Пример #3
0
 def display(self):
     sm.updateLink("texture", "model", self.model.matrix)
     tm.bind(self.texKey)
     self.shape.display()
Пример #4
0
    def display():
        sm.updateLink("texture-hud", "model", Hud.model.matrix)

        tm.bind("hud")
        Hud.shape.display()