04. sprite_kit foreground texture, 04. sprite_kit foreground

Source: Internet
Author: User

04. sprite_kit foreground texture, 04. sprite_kit foreground
04. Sprite_Kit prospective texture

Professional vocabulary Literacy:
texturesTexture: The texture in computer graphics includes both the texture of the object surface in the general sense, even if the object surface shows uneven groove, but also on the smooth surface of the objectColor PatternWe usually call it pattern more.

To put it bluntly, the texture is a shared image used to render the genie (sprites). For example, it is to wear a dress for the genie.Clothes". So when will texture be used? For example, if we want to apply an image to multiple genie, we need texture.Clothes". Usually we load the data stored in the ApplicationbundleCreate a texture for the image file in. However,Sprite KitYou can still useCore Graphices imagesOr use the node tree to create a texture.

Sprite KitThe texture management method is simplified and can be loaded and applied to graphics hardware only by simple code. In addition, texture management generally consistsSprite KitThe framework automatically takes over. Of course, there are exceptions. For example, if you are developing a game with a large number of images, You Should manually control the texture management to improve application performance. Mainly through explicit notificationsSprite KitThe framework loads textures for implementation.

In games, we usually integrate a group of associated textures calledtexture atals. For example, a skill action of a character can be subdivided into multiple images. If one page is played in sequence, the animation is generally played. Passtexture atals, Greatly improving the rendering execution efficiency

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.