About Store Forum Documentation Contact



Post Reply 
Drawing shape on image/texture
Author Message
Pherael Offline
Member

Post: #1
Drawing shape on image/texture
How can I draw shape on texture (image)?

I trying to make pie decal under character, representing his health. So I want to make dynamic texture. Can I use somehow drawPie(...) method from circle shape class on image? Or my only options is create my own drawing pie function using image.color(...)?

Meybe someone know other way to draw generated pie as decal?

Second question is, how can I create texture from image and mask (in code)?
(This post was last modified: 08-07-2013 10:12 PM by Pherael.)
08-07-2013 10:09 PM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #2
RE: Drawing shape on image/texture
08-08-2013 06:32 AM
Find all posts by this user Quote this message in a reply
Pherael Offline
Member

Post: #3
RE: Drawing shape on image/texture
Thank you Rubeus, but I saw that thread before. I know how draw pie on display, but what I need is draw it on image.

Anyway, I able to make pie by myself, using midpoint algorithm, but I'm affraid, that maybe isn't it the fastet way when I have to draw over a dozen decal with pie on scene.

On this screen you can see what I trying to do:
[Image: 267341-the-witcher-windows-screenshot-en...t-in-a.jpg]
08-08-2013 08:29 AM
Find all posts by this user Quote this message in a reply
Post Reply