Poodletooth-iLand/dependencies/panda/direct/showbase/LerpBlendHelpers.py

21 lines
510 B
Python
Raw Normal View History

2015-04-07 15:35:18 -05:00
__all__ = ['getBlend']
from pandac.PandaModules import *
easeIn = EaseInBlendType()
easeOut = EaseOutBlendType()
easeInOut = EaseInOutBlendType()
noBlend = NoBlendType()
def getBlend(blendType):
if blendType == 'easeIn':
return easeIn
elif blendType == 'easeOut':
return easeOut
elif blendType == 'easeInOut':
return easeInOut
elif blendType == 'noBlend':
return noBlend
else:
raise Exception('Error: LerpInterval.__getBlend: Unknown blend type')