Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Can't enter game mode under linux with Glut

  1. #1

    Can't enter game mode under linux with Glut

    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).]

  2. #2
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: Can't enter game mode under linux with Glut

    To be a little bit bold: try GLFW instead. It supports "game mode" under Linux (and Windows, and Irix, and...), but it's called GLFW_FULLSCREEN instead Hopefully you will find that the GLFW documentation explains these things clearly, and there are also example programs for fullscreen mode.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    133

    Re: Can't enter game mode under linux with Glut

    ..or checkout all the various glut replacements at the
    OpenGL Toolkits FAQ .

    Regards,
    Jim

    [This message has been edited by jmathies (edited 08-31-2002).]
    --
    Jim Mathies http://www.mathies.com/

    \"The best way to predict the future is to invent it."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •