Refresh Rate

Hi,
How to set the refrest rate of the display when in fullscreen mode?

Thx!!

You cannot control the refresh rate (or resolution) of your video card using OpenGL.

If on Windows, try DirectX. Or, look for someone’s library that already does it.

You don’t need OpenGL or <Dirty>X for that…

Just use EnumDisplaySettings(…) to get a list of available display modes, including the display frequency and ChangeDisplaySettings(…) to change the resolution.

[This message has been edited by richardve (edited 03-20-2002).]

you can set resolution and refresh using GLUT.
I forget the exact command but its something like GLUT_GAMEMODE(640,480,60)
Note that GLut-gamemode is not a real command i’m just using it as an example to point out that i have used something like this in my GL code before. When I get back home i’ll check.

Glutgamemodestring
enterglutgamemode

int
main(int argc, char **argv)
{
  glutInit(&argc, argv);
  glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);

    glutGameModeString("640x480:16@60");
    glutEnterGameMode();
  initWindow();

  glutMainLoop();
  return 0;            
}