How to use DrawPoly with an image.

Monkey Forums/Monkey Programming/How to use DrawPoly with an image.

FelipeA(Posted 2013) [#1]
I was trying to do some light effects on this test using an image on glfw. But when it renders it looks weird. How is the good way of using DrawPoly with an image?

I am just doing this:

DrawPoly(verts,light)


Here is an example of how it looks, using another image.




Raph(Posted 2013) [#2]
According to the patch notes for 70f, it's experimental still:

"Mojo: Added experimental DrawPoly overload with textured image (vertex format is x,y,u,v) - undocced and only available on glfw, ios, android, win8."

That said, that looks like bad UV's to me, from the image.


GW_(Posted 2013) [#3]
In my testing, the UV's have to be in image-scale not 0.0 - 1.0
It works for me with gcc but not msvc++