moai/moai-dev — pull request #794 by atis-- (2013-10-04 14:30:37+00:00)
Title: Windows: A desirable switch to freeglut (multi-touch feature)

This references an older pull request that I was asked by makoto to remake:
https://github.com/moai/moai-dev/pull/728

As for the glutMultiButtonFunc() calls producing build errors on Unixes -- do you know why this is so? As I see it, freeglut is supposed to be cross-platform, so there shouldn't be any problems. I guess perhaps you have an older version of freeglut on your system that does not have these functions defined?

Anyway, here's the **text of the original pull request**:

Moai uses GLUT which, according to the freeglut web page http://freeglut.sourceforge.net/, has not been updated in over a decade. That, by itself, may not be reason enough to switch to freeglut. However, I believe there is a real and immediate benefit to doing so!

Not only is freeglut a drop-in replacement for GLUT, in its later releases it adds Windows multi touch support (WM_TOUCH). This is great news for those who happen to have a touch sensitive monitor under Windows (and possibly other desktop systems as well). One can then develop touch-enabled applications directly on the desktop (faster prototyping).

This pull request adds code to src/host-glut that employs freeglut's new multi-touch functionality. Switching all the project files properly from GLUT over to freeglut is beyond my competence, but code-wise nothing else needs to change: freeglut just works.

Regards,
Atis