1. changed comment message in CCNode.cpp

2. changed Director projection to Matrix
This commit is contained in:
Huabing.Xu 2014-04-14 09:30:51 +08:00
parent 1aa909371d
commit 80f96398b3
2 changed files with 2 additions and 2 deletions

View File

@ -728,7 +728,7 @@ static void GLToClipTransform(Matrix *transformOut)
#if CC_TARGET_PLATFORM == CC_PLATFORM_WP8
//if needed, we need to undo the rotation for Landscape orientation in order to get the correct positions
kmMat4Multiply(&projection, Director::getInstance()->getOpenGLView()->getReverseOrientationMatrix(), &projection);
projection = Director::getInstance()->getOpenGLView()->getReverseOrientationMatrix() * projection;
#endif
Matrix modelview;

View File

@ -1399,7 +1399,7 @@ const Matrix& Node::getNodeToParentTransform() const
// adjust anchor point
if (!_anchorPointInPoints.equals(Point::ZERO))
{
// XXX: Argh, kmMat needs a "translate" method.
// XXX: Argh, Matrix needs a "translate" method.
// XXX: Although this is faster than multiplying a vec4 * mat4
_transform.m[12] += _transform.m[0] * -_anchorPointInPoints.x + _transform.m[4] * -_anchorPointInPoints.y;
_transform.m[13] += _transform.m[1] * -_anchorPointInPoints.x + _transform.m[5] * -_anchorPointInPoints.y;