class_compressedtexture2d.rst 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CompressedTexture2D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CompressedTexture2D:
  6. CompressedTexture2D
  7. ===================
  8. **Inherits:** :ref:`Texture2D<class_Texture2D>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. A ``.ctex`` texture.
  10. Description
  11. -----------
  12. A texture that is loaded from a ``.ctex`` file.
  13. Properties
  14. ----------
  15. +-----------------------------+----------------------------------------------------------------+--------+
  16. | :ref:`String<class_String>` | :ref:`load_path<class_CompressedTexture2D_property_load_path>` | ``""`` |
  17. +-----------------------------+----------------------------------------------------------------+--------+
  18. Methods
  19. -------
  20. +---------------------------------------+-------------------------------------------------------------------------------------------------+
  21. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`load<class_CompressedTexture2D_method_load>` **(** :ref:`String<class_String>` path **)** |
  22. +---------------------------------------+-------------------------------------------------------------------------------------------------+
  23. Property Descriptions
  24. ---------------------
  25. .. _class_CompressedTexture2D_property_load_path:
  26. - :ref:`String<class_String>` **load_path**
  27. +-----------+-----------------+
  28. | *Default* | ``""`` |
  29. +-----------+-----------------+
  30. | *Setter* | load(value) |
  31. +-----------+-----------------+
  32. | *Getter* | get_load_path() |
  33. +-----------+-----------------+
  34. The CompressedTexture's file path to a ``.ctex`` file.
  35. Method Descriptions
  36. -------------------
  37. .. _class_CompressedTexture2D_method_load:
  38. - :ref:`Error<enum_@GlobalScope_Error>` **load** **(** :ref:`String<class_String>` path **)**
  39. Loads the texture from the given path.
  40. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  41. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  42. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  43. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  44. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  45. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`