Difference between revisions of "Texture:getWrap"
(Created page) |
m |
||
Line 5: | Line 5: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | horiz, vert = Texture:getWrap( ) | + | horiz, vert, depth = Texture:getWrap( ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
Line 12: | Line 12: | ||
{{param|WrapMode|horiz|Horizontal wrapping mode of the texture.}} | {{param|WrapMode|horiz|Horizontal wrapping mode of the texture.}} | ||
{{param|WrapMode|vert|Vertical wrapping mode of the texture.}} | {{param|WrapMode|vert|Vertical wrapping mode of the texture.}} | ||
+ | {{New feature|11.0| | ||
+ | {{param|WrapMode|depth|Wrapping mode for the z-axis of a [[TextureType|Volume texture]].}} | ||
+ | }} | ||
== See Also == | == See Also == | ||
* [[parent::Texture]] | * [[parent::Texture]] |
Latest revision as of 16:52, 28 May 2019
Gets the wrapping properties of a Texture.
This function returns the currently set horizontal and vertical wrapping modes for the texture.
Function
Synopsis
horiz, vert, depth = Texture:getWrap( )
Arguments
None.
Returns
WrapMode horiz
- Horizontal wrapping mode of the texture.
WrapMode vert
- Vertical wrapping mode of the texture.
Available since LÖVE 11.0
WrapMode depth
- Wrapping mode for the z-axis of a Volume texture.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info