1. Alberto Torres
  2. pygamekit

Source

pygamekit / animation.pxd


from prerequisites cimport *
from gameobject cimport gkGameObject

cdef extern from "Animation/gkAnimation.h":
    cdef cppclass gkAnimation:
        pass
    cdef cppclass gkAnimationPlayer:
        Real         getTimePosition()
        Real         getWeight()
        int          getMode()
        Real         getSpeedFactor()
        Real         getLength()

        void         setMode(int v)
        void         setAnimation(gkAnimation* v)
        void         setSpeedFactor(Real v)

        void         enable(bool v)
        bool         isEnabled()
        bool         isDone()

        void setBlendFrames(Real v)
        void setTimePosition(Real v)
        void setWeight(Real w)

        void evaluate(Real tick)
        void reset()
        
        gkGameObject* getObject()