Exemplo n.º 1
0
def empty_node(prefix, color=False):
    path = NodePath(prefix + '_path')
    node = GeomNode(prefix + '_node')
    path.attachNewNode(node)
    if color:
        path.setAttrib(ColorAttrib.makeVertex())
    return (path, node)
Exemplo n.º 2
0
 def show(self, render):
     """
     Reparents the root NodePath of this Map's World to the given NodePath.
     """
     self.world.scene.setColorOff()
     self.world.scene.node().setAttrib(ColorAttrib.makeVertex())
     self.world.scene.reparent_to(render)
Exemplo n.º 3
0
 def show(self, render):
     """
     Reparents the root NodePath of this Map's World to the given NodePath.
     """
     self.world.scene.setColorOff()
     self.world.scene.node().setAttrib(ColorAttrib.makeVertex())
     self.world.scene.reparent_to(render)