2

How do I create a window in OpenGL on Linux instead of using GLUT? Is there a performance penalty when using one or the other?

John Bensin
  • 301
  • 2
  • 5
  • 20
deniz
  • 2,427
  • 4
  • 27
  • 38

1 Answers1

3

First of all, i want to ask if using glut is performance-wise.

It makes no difference for OpenGL performance, which framework you use to create the window.

How can i do it?

You mean the long and hard way using X11 and GLX? I've example code for that here:

https://github.com/datenwolf/codesamples/blob/master/samples/OpenGL/x11argb_opengl/x11argb_opengl.c

datenwolf
  • 159,371
  • 13
  • 185
  • 298