PDA

View Full Version : Can't enter game mode under linux with Glut



goldangel
08-09-2002, 11:05 PM
Hi,
I'm using linux with a GeForce2MX running with the latest nvidia drivers and I'm quite new to openGL/Glut programming ?

My problem is that I can't enter fullscreen mode at the resolution I'd want to.
Here is my code to initialize my program:

int main (int argc, char *argv[])
{
glutInit (&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_RGB | GLUT_DOUBLE);
glutGameModeString("640x480:16");
if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE))
glutEnterGameMode();
else
{
glutCreateWindow("Blah blaah") ;
glutFullScreen();
}
...


The problem is no matter what resolution I request for the gamemode, it never wants to get into it.
Why could be the reason for that ?


[This message has been edited by goldangel (edited 08-10-2002).]

marcus256
08-11-2002, 09:52 PM
To be a little bit bold: try GLFW (http://hem.passagen.se/opengl/glfw/) instead. It supports "game mode" under Linux (and Windows, and Irix, and...), but it's called GLFW_FULLSCREEN instead http://www.opengl.org/discussion_boards/ubb/wink.gif Hopefully you will find that the GLFW documentation explains these things clearly, and there are also example programs for fullscreen mode.

jmathies
08-31-2002, 08:06 PM
..or checkout all the various glut replacements at the
OpenGL Toolkits FAQ (http://www.mathies.com/glfaq/) .

Regards,
Jim

[This message has been edited by jmathies (edited 08-31-2002).]