def setLight(light=0): keys = ["ambient", "diffuse", "specular", "position"] tgt = "render/light%s" % light localcopy = {} localcopy.update(GD.cfg[tgt]) if askConfigPreferences(keys, store=localcopy): GD.cfg[tgt] = localcopy draw.smooth()
def setLight(light=0): keys = [ 'ambient', 'diffuse', 'specular', 'position' ] tgt = 'render/light%s'%light localcopy = {} localcopy.update(GD.cfg[tgt]) if askConfigPreferences(keys,store=localcopy): GD.cfg[tgt] = localcopy draw.smooth()
def setRender(): if askConfigPreferences(["ambient", "specular", "emission", "shininess"], "render"): draw.smooth()
def setRender(): if askConfigPreferences(['ambient', 'specular', 'emission', 'shininess'],'render'): draw.smooth()
def prefLight1(): prefLight(1) draw.smooth()
def prefLight0(): prefLight(0) draw.smooth()