mirror of https://github.com/axmolengine/axmol.git
1. changed comment message in CCNode.cpp
2. changed Director projection to Matrix
This commit is contained in:
parent
1aa909371d
commit
80f96398b3
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue