Thread Tools Display Modes
03-30-14, 04:28 PM   #1
Digital_Utopia
A Flamescale Wyrmkin
 
Digital_Utopia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 110
Texture Masking

My goal is to only draw a texture within the confines of its (wider) frame. The texture will be moving within this frame quite frequently; but I don't want the edges appearing outside of the boundaries. I realize I can achieve this affect with a combination of SetTexCoords and SetWidth/SetHeight; but, considering how cumbersome this is, I was hoping there'd be an easier way to achieve this.

Any help would be appreciated.
__________________
  Reply With Quote
03-30-14, 05:19 PM   #2
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Perhaps using a scroll frame? Set the texture as the scroll child or so.
__________________
Grab your sword and fight the Horde!
  Reply With Quote
03-30-14, 08:37 PM   #3
Digital_Utopia
A Flamescale Wyrmkin
 
Digital_Utopia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 110
Originally Posted by Lombra View Post
Perhaps using a scroll frame? Set the texture as the scroll child or so.
Why didn't I think of that? lol



Thanks a lot!
__________________
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Texture Masking

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off