Poodletooth-iLand/panda/direct/showbase/LerpBlendHelpers.py
Master Jumblespeed d882959bfa switch to remote
2015-05-18 22:11:33 -04:00

20 lines
510 B
Python
Executable file

__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')