Sets the wrapping properties of a Texture.

This function sets the way a Texture is repeated when it is drawn with a [[Quad]] that is larger than the texture's extent, or when a custom [[Shader]] is used which uses texture coordinates outside of [0, 1]. A texture may be clamped or set to repeat in both horizontal and vertical directions.

Clamped textures appear only once (with the edges of the texture stretching to fill the extent of the Quad), whereas repeated ones repeat as many times as there is room in the Quad.
== 関数 ==
=== 概要 ===
<source lang="lua">
Texture:setWrap( horiz, vert, depth )
</source>
=== 引数 ===
{{param (日本語)|WrapMode|horiz|Horizontal wrapping mode of the texture.}}
{{param (日本語)|WrapMode|vert (horiz)|Vertical wrapping mode of the texture.}}
{{New feature (日本語)|11.0|
{{param (日本語)|WrapMode|depth (horiz)|Wrapping mode for the z-axis of a [[TextureType|Volume texture]].}}
}}
=== 返値 ===
ありません。
== 関連 ==
* [[parent::Texture (日本語)]]
* [[Texture:getWrap (日本語)]]
* [[WrapMode (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Sets the wrapping properties of a Texture.}}
{{#set:Since=000}}
== そのほかの言語 ==
{{i18n (日本語)|Texture:setWrap}}