- Cal3D 0.11 API Reference -

animation_cycle.h
1//****************************************************************************//
2// animation_cycle.h //
3// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4//****************************************************************************//
5// This library is free software; you can redistribute it and/or modify it //
6// under the terms of the GNU Lesser General Public License as published by //
7// the Free Software Foundation; either version 2.1 of the License, or (at //
8// your option) any later version. //
9//****************************************************************************//
10
11#ifndef CAL_ANIMATION_CYCLE_H
12#define CAL_ANIMATION_CYCLE_H
13
14
15#include "cal3d/global.h"
16#include "cal3d/animation.h"
17
18
19 class CalCoreAnimation;
20
21
22 class CAL3D_API CalAnimationCycle : public CalAnimation
23{
24 public:
25 CalAnimationCycle(CalCoreAnimation* pCoreAnimation);
26 virtual ~CalAnimationCycle() { }
27
28 bool blend(float weight, float delay);
29 void setAsync(float time, float duration);
30 bool update(float deltaTime);
31
32 private:
33 float m_targetDelay;
34 float m_targetWeight;
35};
36
37#endif
38
39//****************************************************************************//
CalAnimationCycle::blend
bool blend(float weight, float delay)
Interpolates the weight of the animation cycle instance.
Definition animation_cycle.cpp:55
CalAnimationCycle::setAsync
void setAsync(float time, float duration)
Puts the animation cycle instance into async state.
Definition animation_cycle.cpp:75
CalAnimationCycle::update
bool update(float deltaTime)
Updates the animation cycle instance.
Definition animation_cycle.cpp:109
CalAnimationCycle::CalAnimationCycle
CalAnimationCycle(CalCoreAnimation *pCoreAnimation)
Constructs the animation cycle instance.
Definition animation_cycle.cpp:29
CalCoreAnimation
Definition coreanimation.h:23

Generated by The Cal3D Team with Doxygen 1.15.0