Remove dependency on (free)glut
FSLeyes currently depends on (Free)GLUT for rendering text to an opengl canvas (e.g. orientation labels in the ortho panel). However, GLUT requires a display - either a real display, or a virtual one provided by the likes of xvfb-run
.
This complicates the use of FSLeyes for off-screen rendering, via the fsleyes render
command. If we remove reliance on FreeGLUT, users should be able to run fsleyes render
calls on headless machines. The osmesa
library can be used to provide off-screen OpenGL capability, and matplotlib
could be used to render fonts.