*** empty log message ***

This commit is contained in:
Joe Shochet 2002-01-29 01:43:45 +00:00
parent 418fe328f4
commit f057a225d5
2 changed files with 33 additions and 0 deletions

View File

@ -386,3 +386,34 @@ class LerpColorScaleInterval(LerpInterval):
# Initialize superclass
LerpInterval.__init__(self, name, duration, functorFunc, blendType)
class LerpColorInterval(LerpInterval):
# Name counter
lerpColorNum = 1
# Class methods
def __init__(self, node, duration, startColor, endColor,
other=None, blendType='noBlend', name=None):
def functorFunc(node=node, startColor=startColor,
endColor=endColor, other=other):
assert(not node.isEmpty())
if callable(endColor):
# This may be a thunk that returns a point.
endColor = endColor()
if callable(startColor):
# This may be a thunk that returns a point.
startColor = startColor()
if (other != None):
functor = ColorLerpFunctor(node, startColor, endColor, other)
else:
functor = ColorLerpFunctor(node, startColor, endColor)
return functor
# Generate unique name if necessary
if (name == None):
name = 'LerpColorInterval-%d' % LerpColorInterval.lerpColorNum
LerpColorInterval.lerpColorNum += 1
# Initialize superclass
LerpInterval.__init__(self, name, duration, functorFunc, blendType)

View File

@ -306,6 +306,8 @@ class ShowBase:
using the indicated window. This should only be called once
per application.
"""
print 'setup mouse'
# We create both a MouseAndKeyboard object and a MouseWatcher object
# for the window. The MouseAndKeyboard generates mouse events and