Sign in to follow this  
Keev

OpenGL OpenGL window and Fraps

Recommended Posts

I am rendering some graphics in OpenGL to a window using C++ and the Glut library. In the main function, the calls associated to Glut are:
  glutInit(&argc, argv);
  glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
  glutInitWindowSize (500, 500); 
  glutInitWindowPosition (100, 100);
  glutCreateWindow (argv[0]);
  init ();

  // Set up the display, reshape, idle and keyboard function.
  glutDisplayFunc(display); 
  glutReshapeFunc(reshape);
  glutIdleFunc(idle);
  glutKeyboardFunc(keyboard);
  glutMainLoop();
I wish to record the content of the window using Fraps or some other screen recorder. However Fraps does not seem to be able to detect that it is an OpenGL window. I assume this is because I fail to set some state or similar. Does anybody know what should be necessary for Fraps to detect the window? Suggestions about alternative screen recorders that can record OpenGL are also welcome.

Share this post


Link to post
Share on other sites
Perhaps it's because you don't double buffer?
Try
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this