You know the drill.

This commit is contained in:
Jason Felds
2011-02-18 15:34:33 -05:00
parent 32af73f23c
commit 4a4b2ff440
3 changed files with 48 additions and 22 deletions
+18 -9
View File
@@ -1,4 +1,4 @@
/* ITween - Interface for simple interpolation. */
/** @brief ITween - Interface for simple interpolation. */
#ifndef TWEEN_H
#define TWEEN_H
@@ -8,22 +8,29 @@
struct lua_State;
typedef lua_State Lua;
/** @brief The different tweening types available. */
enum TweenType
{
TWEEN_LINEAR,
TWEEN_ACCELERATE,
TWEEN_DECELERATE,
TWEEN_SPRING,
TWEEN_BEZIER,
NUM_TweenType,
TWEEN_LINEAR, /**< A linear tween. */
TWEEN_ACCELERATE, /**< An accelerating tween. */
TWEEN_DECELERATE, /**< A decelerating tween. */
TWEEN_SPRING, /**< A spring tween. */
TWEEN_BEZIER, /**< A bezier tween. */
NUM_TweenType, /**< The number of tween types. */
TweenType_Invalid
};
/** @brief A custom foreach loop iterating through the tween types. */
#define FOREACH_TweenType( tt ) FOREACH_ENUM( TweenType, tt )
LuaDeclareType( TweenType );
/**
* @brief The interface for simple interpolation.
*
* Funny enough, this is a class. */
class ITween
{
public:
/** @brief Create the initial interface. */
virtual ~ITween() { }
virtual float Tween( float f ) const = 0;
virtual ITween *Copy() const = 0;
@@ -34,8 +41,10 @@ public:
#endif
/*
* (c) 2006 Glenn Maynard
/**
* @file
* @author Glenn Maynard (c) 2006
* @section LICENSE
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a