04.sprite_kit-looking textures
Professional Vocabulary Literacy:
: Textures, the textures in computer graphics both include the texture of the object's surface in the usual sense, even if the surface of the object is uneven, and it also includes a color pattern on the smooth surface of the object, which we often call the pattern. textures
The texture is a shared image, used to render the Genie ( sprites
), for example, to wear a "dress"for the Genie. So when do we use textures? For example, when we want to apply a picture to more than one sprite, we need the texture, imagine the countless elves dressed in the same "clothes." Typically we create textures by loading image bundle
files that are stored in the application. However, Sprite Kit
textures can still be created through or Core Graphices images
through the node tree during the run.
Sprite Kit
Simplifies texture management by simply loading and applying simple code to graphics hardware. In addition, texture management Sprite Kit
is usually automatically taken over by the framework. Of course there are exceptions, such as you are opening a large number of pictures of the game, in order to improve the performance of the application should be artificially control the texture Management section. This is achieved by explicitly Sprite Kit
notifying the framework to load the texture.
Usually in the game, we combine a set of linked textures, called texture atals
. For example, the character of a skill action, can be subdivided into multiple images, if a page in order to play, it feels in the play animation generally. texture atals
greatly improves rendering execution efficiency.
04.sprite_kit-looking textures