Draw Textured Poly?

Monkey Forums/Monkey Programming/Draw Textured Poly?

zoqfotpik(Posted 2012) [#1]
I need to be able to draw a convex poly clipped from an image. IE, given the coordinates of N points, I want it to fill the poly with the data from the image.

For my application I can conceivably do this with pre-baked polygonal sprites but I would very much like to be able to make them on the fly.

Is Monkey capable of this? If not, does anyone have any suggestions? Since the polys are convex, it would be simple enough to write a function to do it but I'm somewhat concerned that doing it that way might not be fast enough.


slenkar(Posted 2012) [#2]
which platforms do you want this to work on?


zoqfotpik(Posted 2012) [#3]
IOS and Android are my main targets, also Windows 7 and Windows 8 devices.

I do also need to test on Windows.