@ // reset for next frame
m_nOrderOfArrival = 0;
if (m_pGrid && m_pGrid~~>isActive)
{
m_pGrid~~>afterDraw(this);
}
kmGLPopMatrix();@
+here, since we pop the matrix right after the call of m_pGrid~~>afterDraw, what is the meaning of calling camera’s locate in the afterDraw method below?+
@
void CCGridBase::afterDraw
{
m_pGrabber~~>afterRender(m_pTexture);
// restore projection
CCDirector **director = CCDirector::sharedDirector;
director->setProjection;
**if (pTarget~~>getCamera~~>isDirty)
{
const CCPoint& offset = pTarget~~>getAnchorPointInPoints;
//
// XXX: Camera should be applied in the AnchorPoint
//
kmGLTranslatef;
pTarget~~>getCamera()->locate();
kmGLTranslatef(~~offset.x,~~offset.y, 0);
}*@
many thanks…