Using DirectX8, I am immitading World of Warcraft's spell cooldown and I managed to pull it off on my own. However there is just one problem. The diamond I am using over the spell image needs clipped as I do not want it shown, which means I am gonna need 4 clipping regions. Scissoring would have been a great solution but it's only supported in DirectX9 and above. However I ran into this post which has Weiler-Atherton's algorithm method of 2d Polygon clipping but krtxmrtz's code was too complex for me to convert, mostly cause of his variables. If anyone's got the balls and brains to help splice this in somehow, I would apprieciate it. I am uploading an image of what I have achieved along with my project:





Mark Thread Resolved
Reply With Quote