Thread: My Next Addon
View Single Post
05-07-15, 12:46 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
You could use trapezoid-shaped texcoords to do the same thing. That would use one texture for Semlar's example instead of anywhere between a few dozen to hundreds depending on the size of the output.

Code:
texture:SetTexCoord(ULx,ULy,LLx,LLy,URx,URy,LRx,LRy)
http://wow.gamepedia.com/API_Texture_SetTexCoord

This is the function we had to use to rotate textures before they gave us texture:SetRotation() and the animation system.



Edit: Nevermind. Although it would work good in theory, the graphics engine doesn't quite support this.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 05-07-15 at 01:57 PM.
  Reply With Quote