2012-06-08 13:55:28 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2008 Radu Gruian
|
|
|
|
* Copyright (c) 2011 Vit Valentin
|
2014-01-07 11:25:07 +08:00
|
|
|
* Copyright (c) 2012 cocos2d-x.org
|
2016-04-08 13:40:36 +08:00
|
|
|
* Copyright (c) 2013-2016 Chukong Technologies Inc.
|
2012-06-08 13:55:28 +08:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*
|
|
|
|
*
|
2012-09-17 15:02:24 +08:00
|
|
|
* Original code by Radu Gruian: http://www.codeproject.com/Articles/30838/Overhauser-Catmull-Rom-Splines-for-Camera-Animatio.So
|
2012-06-08 13:55:28 +08:00
|
|
|
*
|
|
|
|
* Adapted to cocos2d-x by Vit Valentin
|
|
|
|
*
|
|
|
|
* Adapted from cocos2d-x to cocos2d-iphone by Ricardo Quesada
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __CCACTION_CATMULLROM_H__
|
|
|
|
#define __CCACTION_CATMULLROM_H__
|
|
|
|
|
2013-01-14 14:45:16 +08:00
|
|
|
#include <vector>
|
|
|
|
|
2014-04-27 01:11:22 +08:00
|
|
|
#include "2d/CCActionInterval.h"
|
2014-04-30 08:37:36 +08:00
|
|
|
#include "math/CCGeometry.h"
|
2012-06-08 13:55:28 +08:00
|
|
|
|
|
|
|
NS_CC_BEGIN;
|
|
|
|
|
2014-08-26 18:19:28 +08:00
|
|
|
class Node;
|
|
|
|
|
2012-06-20 18:09:11 +08:00
|
|
|
/**
|
|
|
|
* @addtogroup actions
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
/** An Array that contain control points.
|
2015-03-18 20:05:59 +08:00
|
|
|
* Used by CardinalSplineTo and (By) and CatmullRomTo (and By) actions.
|
|
|
|
* @ingroup Actions
|
2015-03-19 18:41:11 +08:00
|
|
|
* @js NA
|
2012-06-08 13:55:28 +08:00
|
|
|
*/
|
2014-02-20 10:53:49 +08:00
|
|
|
class CC_DLL PointArray : public Ref, public Clonable
|
2012-06-08 13:55:28 +08:00
|
|
|
{
|
|
|
|
public:
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Creates and initializes a Points array with capacity.
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param capacity The size of the array.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2013-12-27 15:06:16 +08:00
|
|
|
static PointArray* create(ssize_t capacity);
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
virtual ~PointArray();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
PointArray();
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Initializes a Catmull Rom config with a capacity hint.
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param capacity The size of the array.
|
|
|
|
* @return True.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2013-12-27 15:06:16 +08:00
|
|
|
bool initWithCapacity(ssize_t capacity);
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Appends a control point.
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param controlPoint A control point.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2016-05-17 12:17:56 +08:00
|
|
|
void addControlPoint(const Vec2& controlPoint);
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Inserts a controlPoint at index.
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param controlPoint A control point.
|
|
|
|
* @param index Insert the point to array in index.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2014-05-15 01:07:09 +08:00
|
|
|
void insertControlPoint(Vec2 &controlPoint, ssize_t index);
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Replaces an existing controlPoint at index.
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param controlPoint A control point.
|
|
|
|
* @param index Replace the point to array in index.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2014-05-15 01:07:09 +08:00
|
|
|
void replaceControlPoint(Vec2 &controlPoint, ssize_t index);
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Get the value of a controlPoint at a given index.
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param index Get the point in index.
|
|
|
|
* @return A Vec2.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2014-05-15 01:07:09 +08:00
|
|
|
Vec2 getControlPointAtIndex(ssize_t index);
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Deletes a control point at a given index
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param index Remove the point in index.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2013-12-27 15:06:16 +08:00
|
|
|
void removeControlPointAtIndex(ssize_t index);
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Returns the number of objects of the control point array.
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @return The number of objects of the control point array.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2013-12-27 15:06:16 +08:00
|
|
|
ssize_t count() const;
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Returns a new copy of the array reversed. User is responsible for releasing this copy.
|
|
|
|
*
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
2015-03-18 20:05:59 +08:00
|
|
|
* @return A new copy of the array reversed.
|
2013-09-13 11:41:20 +08:00
|
|
|
*/
|
2013-06-22 06:13:52 +08:00
|
|
|
PointArray* reverse() const;
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Reverse the current control point array inline, without generating a new one.
|
2013-09-13 11:41:20 +08:00
|
|
|
* @js NA
|
|
|
|
*/
|
2012-06-08 13:55:28 +08:00
|
|
|
void reverseInline();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-06-22 06:13:52 +08:00
|
|
|
virtual PointArray* clone() const;
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
*/
|
2014-05-15 01:07:09 +08:00
|
|
|
const std::vector<Vec2*>* getControlPoints() const;
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
*/
|
2014-05-15 01:07:09 +08:00
|
|
|
void setControlPoints(std::vector<Vec2*> *controlPoints);
|
2012-06-08 13:55:28 +08:00
|
|
|
private:
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Array that contains the control points. */
|
2014-05-15 01:07:09 +08:00
|
|
|
std::vector<Vec2*> *_controlPoints;
|
2012-06-08 13:55:28 +08:00
|
|
|
};
|
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** @class CardinalSplineTo
|
|
|
|
* Cardinal Spline path.
|
|
|
|
* http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
|
|
|
|
* @ingroup Actions
|
2012-06-08 13:55:28 +08:00
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
class CC_DLL CardinalSplineTo : public ActionInterval
|
2012-06-08 13:55:28 +08:00
|
|
|
{
|
|
|
|
public:
|
2012-06-14 15:13:16 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Creates an action with a Cardinal Spline array of points and tension.
|
|
|
|
* @param duration In seconds.
|
2015-03-27 11:39:31 +08:00
|
|
|
* @param points An PointArray.
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param tension Goodness of fit.
|
2013-09-13 11:41:20 +08:00
|
|
|
* @code
|
2015-03-18 20:05:59 +08:00
|
|
|
* When this function bound to js or lua,the input params are changed.
|
|
|
|
* In js: var create(var t,var table)
|
2015-12-03 20:00:51 +08:00
|
|
|
* In lua: local create(local t, local table)
|
2013-09-13 11:41:20 +08:00
|
|
|
* @endcode
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
static CardinalSplineTo* create(float duration, PointArray* points, float tension);
|
2013-09-13 13:52:42 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
virtual ~CardinalSplineTo();
|
2013-09-13 16:46:31 +08:00
|
|
|
/**
|
2015-03-19 18:41:11 +08:00
|
|
|
* @js ctor
|
2013-09-13 16:46:31 +08:00
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
CardinalSplineTo();
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-01-20 15:41:59 +08:00
|
|
|
/**
|
2015-03-18 20:05:59 +08:00
|
|
|
* Initializes the action with a duration and an array of points.
|
|
|
|
*
|
|
|
|
* @param duration In seconds.
|
2015-03-27 11:39:31 +08:00
|
|
|
* @param points An PointArray.
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param tension Goodness of fit.
|
2015-01-20 15:41:59 +08:00
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
bool initWithDuration(float duration, PointArray* points, float tension);
|
2015-03-18 20:05:59 +08:00
|
|
|
/** It will update the target position and change the _previousPosition to newPos
|
|
|
|
*
|
|
|
|
* @param newPos The new position.
|
|
|
|
*/
|
2014-05-15 01:07:09 +08:00
|
|
|
virtual void updatePosition(Vec2 &newPos);
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Return a PointArray.
|
|
|
|
*
|
|
|
|
* @return A PointArray.
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
inline PointArray* getPoints() { return _points; }
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-07-18 07:56:19 +08:00
|
|
|
inline void setPoints(PointArray* points)
|
2012-06-08 13:55:28 +08:00
|
|
|
{
|
|
|
|
CC_SAFE_RETAIN(points);
|
2013-06-15 14:03:30 +08:00
|
|
|
CC_SAFE_RELEASE(_points);
|
|
|
|
_points = points;
|
2012-06-08 13:55:28 +08:00
|
|
|
}
|
2013-07-18 07:56:19 +08:00
|
|
|
|
|
|
|
// Overrides
|
2014-11-18 10:11:17 +08:00
|
|
|
virtual CardinalSplineTo *clone() const override;
|
2013-07-18 07:56:19 +08:00
|
|
|
virtual CardinalSplineTo* reverse() const override;
|
|
|
|
virtual void startWithTarget(Node *target) override;
|
2015-01-20 15:41:59 +08:00
|
|
|
|
|
|
|
/**
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param time In seconds.
|
2015-01-20 15:41:59 +08:00
|
|
|
*/
|
2013-07-18 07:56:19 +08:00
|
|
|
virtual void update(float time) override;
|
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
protected:
|
|
|
|
/** Array of control points */
|
2013-06-20 14:13:12 +08:00
|
|
|
PointArray *_points;
|
2013-06-15 14:03:30 +08:00
|
|
|
float _deltaT;
|
|
|
|
float _tension;
|
2016-04-08 13:40:36 +08:00
|
|
|
Vec2 _previousPosition;
|
|
|
|
Vec2 _accumulatedDiff;
|
2012-06-08 13:55:28 +08:00
|
|
|
};
|
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** @class CardinalSplineBy
|
|
|
|
* Cardinal Spline path.
|
|
|
|
* http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
|
|
|
|
* @ingroup Actions
|
2012-06-08 13:55:28 +08:00
|
|
|
*/
|
2014-11-18 10:11:17 +08:00
|
|
|
class CC_DLL CardinalSplineBy : public CardinalSplineTo
|
2012-06-08 13:55:28 +08:00
|
|
|
{
|
|
|
|
public:
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Creates an action with a Cardinal Spline array of points and tension.
|
2013-09-13 11:41:20 +08:00
|
|
|
* @code
|
2015-03-18 20:05:59 +08:00
|
|
|
* When this function bound to js or lua,the input params are changed.
|
|
|
|
* In js: var create(var t,var table).
|
2015-12-03 20:00:51 +08:00
|
|
|
* In lua: local create(local t, local table).
|
2015-03-18 20:05:59 +08:00
|
|
|
* @param duration In seconds.
|
|
|
|
* @param point An PointArray.
|
|
|
|
* @param tension Goodness of fit.
|
2013-09-13 11:41:20 +08:00
|
|
|
* @endcode
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
static CardinalSplineBy* create(float duration, PointArray* points, float tension);
|
2012-06-14 15:13:16 +08:00
|
|
|
|
2013-06-20 14:13:12 +08:00
|
|
|
CardinalSplineBy();
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2013-07-18 07:56:19 +08:00
|
|
|
// Overrides
|
|
|
|
virtual void startWithTarget(Node *target) override;
|
2014-05-15 01:07:09 +08:00
|
|
|
virtual void updatePosition(Vec2 &newPos) override;
|
2014-11-18 10:11:17 +08:00
|
|
|
virtual CardinalSplineBy *clone() const override;
|
2013-07-18 07:56:19 +08:00
|
|
|
virtual CardinalSplineBy* reverse() const override;
|
2013-06-16 03:38:32 +08:00
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
protected:
|
2014-05-15 01:07:09 +08:00
|
|
|
Vec2 _startPosition;
|
2012-06-08 13:55:28 +08:00
|
|
|
};
|
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** @class CatmullRomTo
|
|
|
|
* An action that moves the target with a CatmullRom curve to a destination point.
|
|
|
|
* A Catmull Rom is a Cardinal Spline with a tension of 0.5.
|
|
|
|
* http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline
|
|
|
|
* @ingroup Actions
|
2012-06-08 13:55:28 +08:00
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
class CC_DLL CatmullRomTo : public CardinalSplineTo
|
2012-06-08 13:55:28 +08:00
|
|
|
{
|
|
|
|
public:
|
2014-11-18 10:11:17 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Creates an action with a Cardinal Spline array of points and tension.
|
|
|
|
* @param dt In seconds.
|
|
|
|
* @param points An PointArray.
|
2013-09-13 11:41:20 +08:00
|
|
|
* @code
|
2015-03-18 20:05:59 +08:00
|
|
|
* When this function bound to js or lua,the input params are changed.
|
|
|
|
* In js: var create(var dt,var table).
|
2015-12-03 20:00:51 +08:00
|
|
|
* In lua: local create(local dt, local table).
|
2013-09-13 11:41:20 +08:00
|
|
|
* @endcode
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
static CatmullRomTo* create(float dt, PointArray* points);
|
2012-06-14 15:13:16 +08:00
|
|
|
|
2015-01-20 15:41:59 +08:00
|
|
|
/**
|
2015-03-18 20:05:59 +08:00
|
|
|
* Initializes the action with a duration and an array of points.
|
|
|
|
*
|
|
|
|
* @param dt In seconds.
|
|
|
|
* @param points An PointArray.
|
2015-01-20 15:41:59 +08:00
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
bool initWithDuration(float dt, PointArray* points);
|
2013-06-14 08:25:14 +08:00
|
|
|
|
2013-07-18 07:56:19 +08:00
|
|
|
// Override
|
2014-11-18 10:11:17 +08:00
|
|
|
virtual CatmullRomTo *clone() const override;
|
|
|
|
virtual CatmullRomTo *reverse() const override;
|
2012-06-08 13:55:28 +08:00
|
|
|
};
|
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** @class CatmullRomBy
|
|
|
|
* An action that moves the target with a CatmullRom curve by a certain distance.
|
|
|
|
* A Catmull Rom is a Cardinal Spline with a tension of 0.5.
|
|
|
|
* http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline
|
|
|
|
* @ingroup Actions
|
2012-06-08 13:55:28 +08:00
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
class CC_DLL CatmullRomBy : public CardinalSplineBy
|
2012-06-08 13:55:28 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Creates an action with a Cardinal Spline array of points and tension.
|
|
|
|
* @param dt In seconds.
|
|
|
|
* @param points An PointArray.
|
2013-09-13 11:41:20 +08:00
|
|
|
* @code
|
2015-03-18 20:05:59 +08:00
|
|
|
* When this function bound to js or lua,the input params are changed.
|
|
|
|
* In js: var create(var dt,var table).
|
2015-12-03 20:00:51 +08:00
|
|
|
* In lua: local create(local dt, local table).
|
2013-09-13 11:41:20 +08:00
|
|
|
* @endcode
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
static CatmullRomBy* create(float dt, PointArray* points);
|
2012-06-14 15:13:16 +08:00
|
|
|
|
2015-03-18 20:05:59 +08:00
|
|
|
/** Initializes the action with a duration and an array of points.
|
|
|
|
*
|
|
|
|
* @param dt In seconds.
|
|
|
|
* @param points An PointArray.
|
|
|
|
*/
|
2013-06-20 14:13:12 +08:00
|
|
|
bool initWithDuration(float dt, PointArray* points);
|
2013-06-14 08:25:14 +08:00
|
|
|
|
2013-07-18 07:56:19 +08:00
|
|
|
// Override
|
2014-11-18 10:11:17 +08:00
|
|
|
virtual CatmullRomBy *clone() const override;
|
|
|
|
virtual CatmullRomBy *reverse() const override;
|
2013-06-19 06:06:53 +08:00
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/** Returns the Cardinal Spline position for a given set of control points, tension and time */
|
2014-05-15 01:07:09 +08:00
|
|
|
extern CC_DLL Vec2 ccCardinalSplineAt(Vec2 &p0, Vec2 &p1, Vec2 &p2, Vec2 &p3, float tension, float t);
|
2012-06-08 13:55:28 +08:00
|
|
|
|
2012-06-20 18:09:11 +08:00
|
|
|
// end of actions group
|
|
|
|
/// @}
|
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
NS_CC_END;
|
|
|
|
|
|
|
|
#endif // __CCACTION_CATMULLROM_H__
|