Ejemplo n.º 1
0
    def onAttach(self):
        SceneNode.onAttach(self)

        self.defaultVar("radius",1)
        self.defaultVar("stacks",20)
        self.defaultVar("slices",20)

        self.sphere = gluNewQuadric()
        gluQuadricTexture(self.sphere,GL_TRUE)
        gluQuadricOrientation(self.sphere,GLU_OUTSIDE)
Ejemplo n.º 2
0
    def onAttach(self):
        SceneNode.onAttach(self)

        self.defaultVar("center",True)
        self.defaultVar("slices",20)
Ejemplo n.º 3
0
 def onAttach(self):
     SceneNode.onAttach(self)
     
     self.defaultVar("text","")
     self.defaultVar("align","center")
     self.defaultVar("centerHeight",True)
Ejemplo n.º 4
0
 def onAttach(self):
     self.defaultVar("static",False)
     self.defaultVar("position",Vec3(0,0,100))
     self.defaultVar("lookAt",Vec3())
     self.defaultVar("up",Vec3(0,1,0))
     SceneNode.onAttach(self)
Ejemplo n.º 5
0
 def onAttach(self):
     SceneNode.onAttach(self)
     
     self.defaultVar("filled",True)
     self.defaultVar("center",True)