Text archives Help
- From: roni@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r2008 - trunk/Model/MiscObjects
- Date: Fri, 25 Jan 2008 14:35:58 -0700 (MST)
Author: roni
Date: Fri Jan 25 14:35:58 2008
New Revision: 2008
Modified:
trunk/Model/MiscObjects/KeyFrameAnimation.h
Log:
Model/MiscObjects/KeyFrameAnimation.h:
Added some convenience functions. setTimeVoid() has a void return
and is suitable for calling through the callback mechanism.
Modified: trunk/Model/MiscObjects/KeyFrameAnimation.h
==============================================================================
--- trunk/Model/MiscObjects/KeyFrameAnimation.h (original)
+++ trunk/Model/MiscObjects/KeyFrameAnimation.h Fri Jan 25 14:35:58 2008
@@ -21,6 +21,7 @@
//number of seconds the animation takes from start to end
void setDuration(float time) { duration = time; };
+ float getDuration() const { return duration; }
void startAnimation();
void pauseAnimation();
@@ -32,6 +33,7 @@
//set animation to a specific time (frame)
//returns whether the frame is different from the previous frame.
bool setTime(float time);
+ void setTimeVoid(float time) { setTime(time); }
//get the time of the frame currently being worked on.
float getTime() const { return currTime; }
- [Manta] r2008 - trunk/Model/MiscObjects, roni, 01/25/2008
Archive powered by MHonArc 2.6.16.