2010-07-19 14:24:04 +08:00
|
|
|
/****************************************************************************
|
2011-03-19 14:45:51 +08:00
|
|
|
Copyright (c) 2010-2011 cocos2d-x.org
|
|
|
|
Copyright (c) 2009 Valentin Milea
|
2010-07-19 14:24:04 +08:00
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
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.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __SUPPORT_TRANSFORM_UTILS_H__
|
|
|
|
#define __SUPPORT_TRANSFORM_UTILS_H__
|
|
|
|
|
2010-12-28 10:23:14 +08:00
|
|
|
///@todo
|
|
|
|
// when in MAC or windows, it includes <OpenGL/gl.h>
|
2011-03-02 17:05:22 +08:00
|
|
|
#include "CCGL.h"
|
2010-11-12 17:26:01 +08:00
|
|
|
|
2010-08-04 15:46:12 +08:00
|
|
|
namespace cocos2d {
|
2010-07-19 14:24:04 +08:00
|
|
|
|
2011-03-07 17:11:57 +08:00
|
|
|
struct CCAffineTransform;
|
2010-07-19 14:24:04 +08:00
|
|
|
|
2011-03-07 17:11:57 +08:00
|
|
|
void CGAffineToGL(const CCAffineTransform *t, GLfloat *m);
|
|
|
|
void GLToCGAffine(const GLfloat *m, CCAffineTransform *t);
|
2010-08-04 15:46:12 +08:00
|
|
|
}//namespace cocos2d
|
2010-07-19 14:24:04 +08:00
|
|
|
|
|
|
|
#endif // __SUPPORT_TRANSFORM_UTILS_H__
|