Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: input integer, float and string under GLUT

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2005
    Location
    Brussels
    Posts
    2

    input integer, float and string under GLUT

    Hello, I am a beginner.
    I use Open Watcom and GLUT.
    How is it possible to input thing like integer, float or character string with the keyboard during the GlutMainLoop?

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2005
    Posts
    11

    Re: input integer, float and string under GLUT

    pass you keyboard function to gluKeyboardFunc()
    or read this : http://www.lighthouse3d.com/opengl/glut/index.php?5

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2005
    Location
    Brussels
    Posts
    2

    Re: input integer, float and string under GLUT

    ok,
    but that is a very low level input function,
    is it possible to use high level input/output
    function like scanf, printf?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •