Results 1 to 2 of 2

Thread: fullscreen

  1. #1
    Member Contributor
    Join Date
    Oct 2002



    i have a problem with my fullscreen mode(glut). When i render my scene in the fullscreen mode, the whole screen will be black, but the scene is not bigger as the scene without the fullscreen mode.

    I think the problem is that the screen area is 1024x768 and i use 640x480.
    Now i want to change the screen area of the system with glut.
    But i don't know how. Is this possible, when not, what can i do?

    thank you for reply


  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2002

    Re: fullscreen

    this is what i do to get full screen at 1600x1200 at 32 bits in my apps.

    int main (int argc, char** argv)


    glutInit(&argc, argv) ;

    glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH) ;

    glutGameModeString("1600x1200:32@60") ;

    if (glutGameModeGet(GLUT_GAME_MODE_WIDTH) != -1) // if the width is different to -1


    glutEnterGameMode() ; // enter full screen mode

    glutDisplayFunc(display) ;

    glutReshapeFunc(reshape) ;

    glutIdleFunc(anim) ;

    glutKeyboardFunc(keyboard) ;


    else // print out that this mode is not available

    printf("The current mode is not supported in this system\n") ;

    glutMainLoop() ;

    return 0 ;


    just put whatever resolution you want where it says glutGameModeString. if this doesnt work you might have a viewing or reshape problem.

Similar Threads

  1. FullScreen PPC
    By ffelagund in forum OpenGL ES
    Replies: 0
    Last Post: 05-10-2005, 05:11 AM
  2. Fullscreen in cpw
    By a_danne in forum OpenGL: General
    Replies: 2
    Last Post: 03-19-2002, 08:42 AM
  3. FullScreen?
    By Andrea Rossini in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-12-2002, 06:47 AM
  4. GLX / Fullscreen
    By skw|d in forum OpenGL: Linux
    Replies: 15
    Last Post: 09-24-2000, 08:22 AM
  5. Fullscreen?
    By cOg in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 02-14-2000, 12:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean