Example #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)
Example #2
0
    def onAttach(self):
        SceneNode.onAttach(self)

        self.defaultVar("center",True)
        self.defaultVar("slices",20)
Example #3
0
 def onAttach(self):
     SceneNode.onAttach(self)
     
     self.defaultVar("text","")
     self.defaultVar("align","center")
     self.defaultVar("centerHeight",True)
Example #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)
Example #5
0
 def onAttach(self):
     SceneNode.onAttach(self)
     
     self.defaultVar("filled",True)
     self.defaultVar("center",True)