Results 1 to 2 of 2

Thread: glutKeyboard function.

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Bournemouth,dorset, uk

    glutKeyboard function.

    I want to pause an animation that is on going and take screen grabs.

    Can i use glutkeyboard()to do this.

    Ideally, as one of the switch cases i would just cin>> another char which would resume the animation.
    I have already used glut keyboard to adjust some data within the animation.

  2. #2

    Re: glutKeyboard function.

    Yes, you can use GLUT for the keyboard input. The cin idea is bad and probably a result of inexperience.
    Just save the screen and then resume the message loop.

Similar Threads

  1. Why doesn't my code work in a function but in the main function
    By Rockinredross867 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-01-2016, 08:47 PM
  2. Replies: 1
    Last Post: 05-20-2005, 03:43 AM
  3. Replies: 4
    Last Post: 07-27-2004, 06:56 PM
  4. Function to get extension function pointers?
    By Lev in forum OpenGL: macOS
    Replies: 4
    Last Post: 10-28-2002, 11:25 PM
  5. glutKeyboard()
    By huizhang in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-02-2002, 05:24 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