Pherael
Member
|
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 |
|
Rubeus
Member
|
RE: Drawing shape on image/texture
|
|
08-08-2013 06:32 AM |
|
Pherael
Member
|
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:
|
|
08-08-2013 08:29 AM |
|