Thread Tools Display Modes
09-01-09, 08:49 AM   #1
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Hide parts of texture outside of defined area

Didn't really know what to call the topic.
Is there any way to hide parts of an texture which is "out of bounds" or out of an defined area.


Here's an example of what I'm talking about.

The frame is the container and anything outside this will be hidden (see red) while anything inside would be shown (green)

Code:
+------------+
|  frame     |
|       +----+----+
|       |    |    |
+-------+----+    |
        | texture |
        +---------+
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 09-01-09 at 09:15 AM.
  Reply With Quote
09-01-09, 08:51 AM   #2
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
Not exactly sure what you mean. SS example?
  Reply With Quote
09-01-09, 09:05 AM   #3
Bruners
A Flamescale Wyrmkin
 
Bruners's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 125
I guess you are looking for SetTexCoord


http://www.wowwiki.com/API_Texture_SetTexCoord
  Reply With Quote
09-01-09, 09:10 AM   #4
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Updated example.
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
09-01-09, 11:08 AM   #5
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Perhaps combine SetTexCoord with http://www.wowwiki.com/API_Texture_S...rdModifiesRect

You'd have to calculate that whenever the frame changes size though. I don't know of a better way but that doesn't mean there isn't one.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Hide parts of texture outside of defined area


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