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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/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. GLTFTexture represents a texture in a glTF file.
  11. .. rst-class:: classref-introduction-group
  12. Tutorials
  13. ---------
  14. - :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-----------------------+--------------------------------------------------------+--------+
  21. | :ref:`int<class_int>` | :ref:`sampler<class_GLTFTexture_property_sampler>` | ``-1`` |
  22. +-----------------------+--------------------------------------------------------+--------+
  23. | :ref:`int<class_int>` | :ref:`src_image<class_GLTFTexture_property_src_image>` | ``-1`` |
  24. +-----------------------+--------------------------------------------------------+--------+
  25. .. rst-class:: classref-section-separator
  26. ----
  27. .. rst-class:: classref-descriptions-group
  28. Property Descriptions
  29. ---------------------
  30. .. _class_GLTFTexture_property_sampler:
  31. .. rst-class:: classref-property
  32. :ref:`int<class_int>` **sampler** = ``-1`` :ref:`🔗<class_GLTFTexture_property_sampler>`
  33. .. rst-class:: classref-property-setget
  34. - |void| **set_sampler**\ (\ value\: :ref:`int<class_int>`\ )
  35. - :ref:`int<class_int>` **get_sampler**\ (\ )
  36. 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).
  37. .. rst-class:: classref-item-separator
  38. ----
  39. .. _class_GLTFTexture_property_src_image:
  40. .. rst-class:: classref-property
  41. :ref:`int<class_int>` **src_image** = ``-1`` :ref:`🔗<class_GLTFTexture_property_src_image>`
  42. .. rst-class:: classref-property-setget
  43. - |void| **set_src_image**\ (\ value\: :ref:`int<class_int>`\ )
  44. - :ref:`int<class_int>` **get_src_image**\ (\ )
  45. 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.
  46. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  47. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  48. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  49. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  50. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  51. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  52. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  53. .. |void| replace:: :abbr:`void (No return value.)`