Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API Texture GetTexCoord
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{widgetmethod}}Gets the texture coordinates of a {{api|Texture|t=w}}. local ULx,ULy,LLx,LLy,URx,URy,LRx,LRy = obj:GetTexCoord() == Parameters == === Arguments === :none === Returns === :;ULx,ULy,LLx,LLy,URx,URy,LRx,LRy - number :: point coordinates; top left corner of the image is (0, 0); bottom right corner == Details == Texture coordinates change the region of, or distort, the drawn texture. Texture coordinates can be used to display a sub-region of a texture. == Examples == Displays the bottom-left quarter of the image. texture:SetTexCoord(0, 0.5, 0.5, 1); == Notes == * coordinates are normalized and the origin is the top-left corner * Tested in patch 2.0.6, and the origin is in fact in the top left, and not the bottom left as was previously stated. == See also == * {{api|Texture:SetTexCoord|t=w}} * [[SetTexCoord Transformations]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Widget
(
edit
)
Template:Widgetmethod
(
edit
)