class_atlastexture.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the AtlasTexture.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_AtlasTexture:
  5. AtlasTexture
  6. ============
  7. **Inherits:** :ref:`Texture<class_texture>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Packs multiple small textures in a single, bigger one. Helps to optimize video memory costs and render calls.
  12. Member Variables
  13. ----------------
  14. .. _class_AtlasTexture_atlas:
  15. - :ref:`Texture<class_texture>` **atlas** - The texture that contains the atlas. Can be any :ref:`Texture<class_texture>` subtype.
  16. .. _class_AtlasTexture_filter_clip:
  17. - :ref:`bool<class_bool>` **filter_clip** - If ``true`` clips the area outside of the region to avoid bleeding of the surrounding texture pixels.
  18. .. _class_AtlasTexture_margin:
  19. - :ref:`Rect2<class_rect2>` **margin** - The margin around the region. The :ref:`Rect2<class_rect2>`'s 'size' parameter ('w' and 'h' in the editor) resizes the texture so it fits within the margin.
  20. .. _class_AtlasTexture_region:
  21. - :ref:`Rect2<class_rect2>` **region** - The AtlasTexture's used region.
  22. Description
  23. -----------
  24. :ref:`Texture<class_texture>` resource aimed at managing big textures files that pack multiple smaller textures. Consists of a :ref:`Texture<class_texture>`, a margin that defines the border width,
  25. and a region that defines the actual area of the AtlasTexture.