Files
godot-docs-l10n/classes/zh_CN/class_gltftexture.rst

86 lines
3.0 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
.. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/4.2/modules/gltf/doc_classes/GLTFTexture.xml.
.. _class_GLTFTexture:
GLTFTexture
===========
**继承:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
.. container:: contribute
目前没有这个类的描述。请帮我们\ :ref:`贡献一个 <doc_updating_the_class_reference>`\
.. rst-class:: classref-introduction-group
教程
----
- :doc:`运行时文件加载与保存 <../tutorials/io/runtime_file_loading_and_saving>`
.. rst-class:: classref-reftable-group
属性
----
.. table::
:widths: auto
+-----------------------+--------------------------------------------------------+--------+
| :ref:`int<class_int>` | :ref:`sampler<class_GLTFTexture_property_sampler>` | ``-1`` |
+-----------------------+--------------------------------------------------------+--------+
| :ref:`int<class_int>` | :ref:`src_image<class_GLTFTexture_property_src_image>` | ``-1`` |
+-----------------------+--------------------------------------------------------+--------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
属性说明
--------
.. _class_GLTFTexture_property_sampler:
.. rst-class:: classref-property
:ref:`int<class_int>` **sampler** = ``-1``
.. rst-class:: classref-property-setget
- void **set_sampler** **(** :ref:`int<class_int>` value **)**
- :ref:`int<class_int>` **get_sampler** **(** **)**
纹理采样器的 ID在对图像进行采样时使用。如果为 -1则使用默认的纹理采样器线性过滤并在两个轴上重复环绕
.. rst-class:: classref-item-separator
----
.. _class_GLTFTexture_property_src_image:
.. rst-class:: classref-property
:ref:`int<class_int>` **src_image** = ``-1``
.. rst-class:: classref-property-setget
- void **set_src_image** **(** :ref:`int<class_int>` value **)**
- :ref:`int<class_int>` **get_src_image** **(** **)**
与该纹理关联的图像索引,见 :ref:`GLTFState.get_images<class_GLTFState_method_get_images>`\ 。如果为 -1则该纹理未与图像相关联。
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
.. |const| replace:: :abbr:`const (本方法没有副作用。不会修改该实例的任何成员变量。)`
.. |vararg| replace:: :abbr:`vararg (本方法除了在此处描述的参数外,还能够继续接受任意数量的参数。)`
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
.. |static| replace:: :abbr:`static (调用本方法无需实例,所以可以直接使用类名调用。)`
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`