class_gltftexture.rst 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/modules/gltf/doc_classes/GLTFTexture.xml.
  6. .. _class_GLTFTexture:
  7. GLTFTexture
  8. ===========
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. .. container:: contribute
  11. There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  12. .. rst-class:: classref-introduction-group
  13. Tutorials
  14. ---------
  15. - :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-----------------------+--------------------------------------------------------+--------+
  22. | :ref:`int<class_int>` | :ref:`sampler<class_GLTFTexture_property_sampler>` | ``-1`` |
  23. +-----------------------+--------------------------------------------------------+--------+
  24. | :ref:`int<class_int>` | :ref:`src_image<class_GLTFTexture_property_src_image>` | ``-1`` |
  25. +-----------------------+--------------------------------------------------------+--------+
  26. .. rst-class:: classref-section-separator
  27. ----
  28. .. rst-class:: classref-descriptions-group
  29. Property Descriptions
  30. ---------------------
  31. .. _class_GLTFTexture_property_sampler:
  32. .. rst-class:: classref-property
  33. :ref:`int<class_int>` **sampler** = ``-1``
  34. .. rst-class:: classref-property-setget
  35. - void **set_sampler** **(** :ref:`int<class_int>` value **)**
  36. - :ref:`int<class_int>` **get_sampler** **(** **)**
  37. ID of the texture sampler to use when sampling the image. If -1, then the default texture sampler is used (linear filtering, and repeat wrapping in both axes).
  38. .. rst-class:: classref-item-separator
  39. ----
  40. .. _class_GLTFTexture_property_src_image:
  41. .. rst-class:: classref-property
  42. :ref:`int<class_int>` **src_image** = ``-1``
  43. .. rst-class:: classref-property-setget
  44. - void **set_src_image** **(** :ref:`int<class_int>` value **)**
  45. - :ref:`int<class_int>` **get_src_image** **(** **)**
  46. The index of the image associated with this texture, see :ref:`GLTFState.get_images<class_GLTFState_method_get_images>`. If -1, then this texture does not have an image assigned.
  47. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  48. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  49. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  50. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  51. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  52. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  53. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`