- Cal3D 0.11 API Reference - |
00001 //****************************************************************************// 00002 // animation_cycle.h // 00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger // 00004 //****************************************************************************// 00005 // This library is free software; you can redistribute it and/or modify it // 00006 // under the terms of the GNU Lesser General Public License as published by // 00007 // the Free Software Foundation; either version 2.1 of the License, or (at // 00008 // your option) any later version. // 00009 //****************************************************************************// 00010 00011 #ifndef CAL_ANIMATION_CYCLE_H 00012 #define CAL_ANIMATION_CYCLE_H 00013 00014 00015 #include "cal3d/global.h" 00016 #include "cal3d/animation.h" 00017 00018 00019 class CalCoreAnimation; 00020 00021 00022 class CAL3D_API CalAnimationCycle : public CalAnimation 00023 { 00024 public: 00025 CalAnimationCycle(CalCoreAnimation* pCoreAnimation); 00026 virtual ~CalAnimationCycle() { } 00027 00028 bool blend(float weight, float delay); 00029 void setAsync(float time, float duration); 00030 bool update(float deltaTime); 00031 00032 private: 00033 float m_targetDelay; 00034 float m_targetWeight; 00035 }; 00036 00037 #endif 00038 00039 //****************************************************************************//