DrawTriangles() for mojo

Monkey Forums/Monkey Code/DrawTriangles() for mojo

Difference(Posted 2014) [#1]
Updated code to fix small error in GLFW


Difference(Posted 2014) [#2]
In order to draw convex polygons, we need to have a DrawTriangles() function

See my Tesselate code here http://www.monkey-x.com/Community/posts.php?topic=8035

and the SVG Project topic here: http://www.monkey-x.com/Community/posts.php?topic=7898 for intended use.

These are the steps to patch mojo to Add DrawTriangles.
There are versions for HTML5, GLFW and fallback for all other platforms.
You can use the GLFW version for IOS too.

In graphics.monkey add this at the end:



In graphicsdevice.moneky add this after Method Readpixels.....


In mojo.html5.js add this , just above "// ***** gxtkSurface class ***** "


In mojo.glfw.cpp:

just below virtual int WritePixels2......


just before "//***** gxtkSurface *****"




Difference(Posted 2014) [#3]
.deleted