WoW:API Texture SetTexCoord: Difference between revisions

(boilerplate)
Line 17: Line 17:


== Example ==
== Example ==
Displays the bottom-right quarter of the image.
Displays the bottom-left quarter of the image.
  texture:SetTexCoord(0, 0.5, 0.5, 1);
  texture:SetTexCoord(0, 0.5, 0.5, 1);


==Details==
==Details==
Use this function to select a sub-region of a texture for display in a Texture widget.  Note that the coordinates are normalised, and that the origin is the ''top'' left corner.  (Note: 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)
Use this function to select a sub-region of a texture for display in a Texture widget.  Note that the coordinates are normalised, and that the origin is the ''top'' left corner.  (Note: 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)
Anonymous user