View Full Version : Getting Display* pointer via glut

03-27-2002, 03:56 AM
I'd like to use pbuffers in a program I've already written, which uses glut. To use the pbuffers I need to be able to get the Display* pointer to the window. Adapting the program to use glX would be quite a lengthy procedure. Does anyone know a way in which I can get this pointer via glut please? Or is it a lost cause?

Thanks very much

03-27-2002, 04:25 AM
Display* glXGetCurrentDisplay()

gets the display associated with the current context. It's not supported by all glX-versions though.