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