Advantages of TexturePacke:
1. Memory problems. The width and height of OpenGL textures and the memory used will automatically expand to the Npower of 2. For example, 257*257 will be used for 512*512, and mobile phone memory is a rare resource,
2. In terms of rendering speed, we should try to reduce the texture switching during rendering. If we do not pack the image, the texture rendering efficiency will be reduced once every image is switched. In order to increase the loading speed, splice multiple small images into a large image, load them at a time, and reduce I/O
[Cpp]
Data Format: the Format of the engine supported by the Export
Data File: export File path (for example, image. plist)
Texture Format: Texture Format
Image format: Image pixel format
Dithering: Jitter, NearestNeighbour by default
Usage: www.2cto.com
[Cpp]
Cache = CCSpriteFrameCache: sharedSpriteFrameCache ()
Cache: addSpriteFramesWithFile ("resource/tilemap/test/image. plist", "resource/tilemap/test/image.png ");
Sprite = CCSprite: spriteWithSpriteFrameName ("2.jpg ")