Ejemplo n.º 1
0
        public static CCLayer createHiResLayer(int idx)
        {
            CCLayer pLayer = null;

            switch (idx)
            {
            case 0:
                CCDirector.sharedDirector().enableRetinaDisplay(false);
                pLayer = new HiResTest1();
                break;

            case 1:
                CCDirector.sharedDirector().enableRetinaDisplay(true);
                pLayer = new HiResTest2();
                break;
            }

            return(pLayer);
        }
Ejemplo n.º 2
0
        public static CCLayer createHiResLayer(int idx)
        {
            CCLayer pLayer = null;

            switch (idx)
            {
                case 0:
                    CCDirector.sharedDirector().enableRetinaDisplay(false);
                    pLayer = new HiResTest1();
                    break;
                case 1:
                    CCDirector.sharedDirector().enableRetinaDisplay(true);
                    pLayer = new HiResTest2();
                    break;
            }

            return pLayer;
        }