public static CCLayer createTextureTest(int index) { CCLayer pLayer = null; switch (index) { case 0: pLayer = new TextureCache1(); break; case 1: pLayer = new TextureSizeTest(); break; case 2: pLayer = new TextureGLRepeat(); break; case 3: pLayer = new TextureGLClamp(); break; case 4: pLayer = new TextureGLMirror(); break; case 5: pLayer = new TextureAsync(); break; case 6: pLayer = new TextureAlias(); break; //case 1: // pLayer = new TextureMipMap(); break; //case 2: // pLayer = new TexturePVRMipMap(); break; //case 3: // pLayer = new TexturePVRMipMap2(); break; //case 4: // pLayer = new TexturePVRNonSquare(); break; //case 5: // pLayer = new TexturePVRNPOT4444(); break; //case 6: // pLayer = new TexturePVRNPOT8888(); break; //case 7: // pLayer = new TexturePVR2BPP(); break; //case 8: // pLayer = new TexturePVRRaw(); break; //case 9: // pLayer = new TexturePVR(); break; //case 10: // pLayer = new TexturePVR4BPP(); break; //case 11: // pLayer = new TexturePVRRGBA8888(); break; //case 12: // pLayer = new TexturePVRBGRA8888(); break; //case 13: // pLayer = new TexturePVRRGBA4444(); break; //case 14: // pLayer = new TexturePVRRGBA4444GZ(); break; //case 15: // pLayer = new TexturePVRRGBA4444CCZ(); break; //case 16: // pLayer = new TexturePVRRGBA5551(); break; //case 17: // pLayer = new TexturePVRRGB565(); break; //case 18: // pLayer = new TexturePVRA8(); break; //case 19: // pLayer = new TexturePVRI8(); break; //case 20: // pLayer = new TexturePVRAI88(); break; //case 21: // pLayer = new TexturePVRBadEncoding(); break; //case 22: // pLayer = new TexturePNG(); break; //case 23: // pLayer = new TextureJPEG(); break; //case 24: // pLayer = new TexturePixelFormat(); break; //case 25: // pLayer = new TextureBlend(); break; //case 26: // pLayer = new TextureGlClamp(); break; //case 27: // pLayer = new TextureGlRepeat(); break; //case 28: // pLayer = new TextureSizeTest(); break; //case 29: // pLayer = new TextureCache1(); break; default: break; } return pLayer; }
public static CCLayer createTextureTest(int index) { CCLayer pLayer = null; switch (index) { case 0: pLayer = new TextureCache1(); break; case 1: pLayer = new TextureSizeTest(); break; //case 0: // pLayer = new TextureAlias(); break; //case 1: // pLayer = new TextureMipMap(); break; //case 2: // pLayer = new TexturePVRMipMap(); break; //case 3: // pLayer = new TexturePVRMipMap2(); break; //case 4: // pLayer = new TexturePVRNonSquare(); break; //case 5: // pLayer = new TexturePVRNPOT4444(); break; //case 6: // pLayer = new TexturePVRNPOT8888(); break; //case 7: // pLayer = new TexturePVR2BPP(); break; //case 8: // pLayer = new TexturePVRRaw(); break; //case 9: // pLayer = new TexturePVR(); break; //case 10: // pLayer = new TexturePVR4BPP(); break; //case 11: // pLayer = new TexturePVRRGBA8888(); break; //case 12: // pLayer = new TexturePVRBGRA8888(); break; //case 13: // pLayer = new TexturePVRRGBA4444(); break; //case 14: // pLayer = new TexturePVRRGBA4444GZ(); break; //case 15: // pLayer = new TexturePVRRGBA4444CCZ(); break; //case 16: // pLayer = new TexturePVRRGBA5551(); break; //case 17: // pLayer = new TexturePVRRGB565(); break; //case 18: // pLayer = new TexturePVRA8(); break; //case 19: // pLayer = new TexturePVRI8(); break; //case 20: // pLayer = new TexturePVRAI88(); break; //case 21: // pLayer = new TexturePVRBadEncoding(); break; //case 22: // pLayer = new TexturePNG(); break; //case 23: // pLayer = new TextureJPEG(); break; //case 24: // pLayer = new TexturePixelFormat(); break; //case 25: // pLayer = new TextureBlend(); break; //case 26: // pLayer = new TextureGlClamp(); break; //case 27: // pLayer = new TextureGlRepeat(); break; //case 28: // pLayer = new TextureSizeTest(); break; //case 29: // pLayer = new TextureCache1(); break; default: break; } return(pLayer); }