PDA

View Full Version : Call back function for 'stdin'



hakko
11-05-2001, 07:31 AM
I'm using GLUT, and for keyboard input there's glutKeyboardFunc(), for mouse there is glutMouseFunc(). Now is there one for stdin (i'm on linux), that'll call my function when there's stuff on 'stdin' (ie out put from another program 'piped' to my openGL orogram)?

Greatly appreciate any help.

Cheers.

Lev
11-05-2001, 07:44 AM
GLUT doesn't handle this because stdin and stdout functions are a part of a standard C library, so there is no need for this. (Remember GLUT's aim is portability, and stdin functions are portable "by default".

Cheers,
-Lev