Common support for OpenGL demos
