I'm writing an OpenGL application for Win32 and Linux. I use WGL on Win32 and GLX on X-Windows to handle OpenGL rendering contexts.
In Win32 I use EnumDisplaySettings( ) and ChangeDisplaySettings( ) respectively to handle full screen mode switching at various display modes. I'm wondering if there are eqivalent routies for enumerating display modes in Linux for full screen rendering?
I don't want to use GLUT, because it is not suitable from my application.
hello
hope this might help
http://www.xfree86.org/4.4.0/XF86VidModeModModeLine.3.html
this site has some documentation about calls to the X server
Bool XF86VidModeGetAllModeLines(
Display *display,
int screen,
int *modecount_return,
XF86VidModeModeInfo ***modesinfo);
this is function u wanna call to get the display modes from the x server.
chao
rx
For OpenGL on linux look into SDL www.libsdl.org