【cocos2d-x-3.1.1系列5】cocos2d-x 引用计数细节

Datetime:2016-08-23 04:32:11          Topic: Cocos2d-X           Share

int APIENTRY _tWinMain ( HINSTANCE hInstance ,

                       HINSTANCE hPrevInstance ,

                       LPTSTR     lpCmdLine ,

                       int        nCmdShow )

{

    return Application ::getInstance()->run();

           其中run(){

           while (!glview->windowShouldClose())

           {

             QueryPerformanceCounter(&nNow);

              if (nNow.QuadPart - nLast.QuadPart > _animationInterval.QuadPart)

             {

                 nLast.QuadPart = nNow.QuadPart;

           

                 director->mainLoop();

                    其中 mainLoop();

                    {

                        drawScene();

                       PoolManager::getInstance()->getCurrentPool()->clear();

   for   ( const   auto   &obj : _managedObjectArray)





About List