Results 1 to 4 of 4

Thread: Getting screen resolutions

  1. #1
    Member Newbie
    Join Date
    Jul 2004
    Posts
    41

    Getting screen resolutions

    Hi,

    Is there a way to get a list of all possible screen resolutions that can be used, depending on the video card/monitor/OS ? I know how to do it with win32, but I'd like to do it with OpenGL or GLUT so it's portable.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jun 2002
    Posts
    365

    Re: Getting screen resolutions

    You cant retrieve this kind of information using OpenGL(or GLUT). Lookup MS GDI functions on MSDN for microsoft OSes.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Poland
    Posts
    196

    Re: Getting screen resolutions

    Search MSDN for DEVMODE structure.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Sofia,None,Bulgaria
    Posts
    107

    Re: Getting screen resolutions

    DEVMODE screen_settings;
    int i = 0;

    while(EnumScreenSettings(NULL,i,&screen_settings) != FALSE)
    {
    printf("%d: %dx%d %d bpp",i,screen_settings.dmPelsWidth,
    screen_settings.dmPelsHeight,
    screen_settings.dmBitsPerPel);
    i++;
    }
    The pain is coming...THIS SUMMER!

Similar Threads

  1. Replies: 2
    Last Post: 08-31-2005, 09:42 AM
  2. twinview & different monitor resolutions
    By torisutan in forum OpenGL: User Software
    Replies: 1
    Last Post: 09-16-2003, 12:19 PM
  3. Pbuffers in different resolutions
    By Mazy in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-14-2002, 12:07 PM
  4. Switching between screen resolutions/color depth
    By borelli in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 12-04-2000, 10:08 AM
  5. about diferent screen resolutions
    By Xception in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-13-2000, 02:19 PM

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