r03ert0 / meshgeometry

mesh geometry tools
25 stars 11 forks source link

Replace deprecated GLUT #1

Open r03ert0 opened 9 years ago

r03ert0 commented 9 years ago

drawSurface, the command that writes TIFF pictures, uses GLUT; which is deprecated since OS X 10.9. The warnings are annoying, and are silenced using -Wno-deprecated in gcc during compilation. The best would be to replace GLUT (which is used for offscreen drawing) by drawing to a frame buffer, probably.

See:

https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_offscreen/opengl_offscreen.html

http://www.swiftless.com/tutorials/opengl/framebuffer.html