rename setVirtualViewPort->setVirtualViewport

This commit is contained in:
Huabing.Xu 2014-03-04 15:41:36 +08:00
parent ec397611f6
commit 99d0ce160a
3 changed files with 3 additions and 3 deletions

View File

@ -306,7 +306,7 @@ void RenderTexture::setKeepMatrix(bool keepMatrix)
_keepMatrix = keepMatrix;
}
void RenderTexture::setVirtualViewPort(const Point& rtBegin, const Rect& fullRect, const Rect& fullViewport)
void RenderTexture::setVirtualViewport(const Point& rtBegin, const Rect& fullRect, const Rect& fullViewport)
{
_rtTextureRect.origin.x = rtBegin.x;
_rtTextureRect.origin.y = rtBegin.y;

View File

@ -158,7 +158,7 @@ public:
virtual void draw(Renderer *renderer, const kmMat4 &transform, bool transformUpdated) override;
void setKeepMatrix(bool keepMatrix);
void setVirtualViewPort(const Point& rtBegin, const Rect& fullRect, const Rect& fullViewport);
void setVirtualViewport(const Point& rtBegin, const Rect& fullRect, const Rect& fullViewport);
public:
// XXX should be procted.

View File

@ -456,7 +456,7 @@ RenderTexturePartTest::RenderTexturePartTest()
_rend->retain();
_rend->setKeepMatrix(true);
Size pixelSize = Director::getInstance()->getWinSizeInPixels();
_rend->setVirtualViewPort(Point(size.width/2-150, size.height/2-150),Rect(0,0,size.width,size.height),Rect(0,0,pixelSize.width,pixelSize.height));
_rend->setVirtualViewport(Point(size.width/2-150, size.height/2-150),Rect(0,0,size.width,size.height),Rect(0,0,pixelSize.width,pixelSize.height));
_rend->beginWithClear(1, 0, 0, 1);
sprite1->visit();