Documentation
¶
Index ¶
- Constants
- type ANIMSTATUS
- type ANIMVALTYPE
- type Anim
- func (this *Anim) AddChannel(name string, dataType ANIMVALTYPE, values []*AnimationKeyFrame)
- func (a *Anim) Fps() float64
- func (a *Anim) Play() *Anim
- func (this *Anim) SampleChannel(name string) interface{}
- func (this *Anim) SetEasingFunction(easingFunc tools.IEasingFunction)
- func (a *Anim) SetLoop(isloop bool) *Anim
- func (this *Anim) SetOnErrorListener(errorfuc func(error))
- func (this *Anim) SetOnPlayingListener(playfuc func(int, bool, float64))
- func (this *Anim) SetOnStopingListener(stopfuc func())
- func (a *Anim) Status() ANIMSTATUS
- func (a *Anim) Stop() *Anim
- func (this *Anim) Update(delay float64) bool
- type AnimChannel
- type AnimationKeyFrame
- type IAnimatable
- type IAnimation
- type IAnimationTarget
Constants ¶
View Source
const ( ANIMATIONTYPE_INT = 0 ANIMATIONTYPE_FLOAT = 1 ANIMATIONTYPE_VECTOR2 = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ANIMSTATUS ¶
type ANIMSTATUS uint8
const ( AnimstatusPlaying ANIMSTATUS = iota AnimstatusStop )
type ANIMVALTYPE ¶
type ANIMVALTYPE uint8
const ( AnimValTypeInt ANIMVALTYPE = iota AnimValTypeFloat AnimValTypeVector2 )
type Anim ¶
func (*Anim) AddChannel ¶ added in v1.1.0
func (this *Anim) AddChannel(name string, dataType ANIMVALTYPE, values []*AnimationKeyFrame)
func (*Anim) SampleChannel ¶ added in v1.1.0
func (*Anim) SetEasingFunction ¶ added in v1.1.0
func (this *Anim) SetEasingFunction(easingFunc tools.IEasingFunction)
func (*Anim) SetOnErrorListener ¶ added in v1.1.0
func (*Anim) SetOnPlayingListener ¶
func (*Anim) SetOnStopingListener ¶
func (this *Anim) SetOnStopingListener(stopfuc func())
func (*Anim) Status ¶
func (a *Anim) Status() ANIMSTATUS
type AnimChannel ¶ added in v1.1.0
func NewAnimChannel ¶ added in v1.1.0
func NewAnimChannel(name string, dataType int, easingFunc tools.IEasingFunction, keys []*AnimationKeyFrame) *AnimChannel
loopmodel = -1
func (*AnimChannel) SetEasingFunction ¶ added in v1.1.0
func (this *AnimChannel) SetEasingFunction(easingFunc tools.IEasingFunction)
type AnimationKeyFrame ¶
type AnimationKeyFrame struct { Frame int Value interface{} // Vector2 or Int or Float }
type IAnimatable ¶
type IAnimatable interface { GetTarget() IAnimationTarget Animate() bool }
type IAnimation ¶
type IAnimationTarget ¶
type IAnimationTarget interface { GetAnimations() []IAnimation GetAnimatables() []IAnimatable }
Click to show internal directories.
Click to hide internal directories.