PDA

View Full Version : Where to get gl/device.h



yohoooo
11-02-2007, 12:10 AM
i have gone thru some OGL code. some code include gl/device.h in their code. but i do not manage to find this header file, please anyone kindly give suggestion on this.

TQ.

Trenki
11-02-2007, 03:18 AM
This must be a nonstandard file which presumably is provided by the source you are looking at.

[ www.trenki.net (http://www.trenki.net) | vector_math (3d math library) (http://www.trenki.net/content/view/16/36/) | software renderer (http://www.trenki.net/content/view/18/38/) ]

dorbie
11-05-2007, 02:46 AM
Wait a second, this is probably old SGI code from the Iris GL era for simple mouse & keyboard input.

Mouse & keyboard will be the least of your worries if you're trying to port to OpenGL. I wouldn't worry about it too much, just delete it an deal with the remaining issues, if you can even see them amidst the storm or compilation errors.

Good luck.

yohoooo
11-06-2007, 08:54 PM
Wait a second, this is probably old SGI code from the Iris GL era for simple mouse & keyboard input.

Mouse & keyboard will be the least of your worries if you're trying to port to OpenGL. I wouldn't worry about it too much, just delete it an deal with the remaining issues, if you can even see them amidst the storm or compilation errors.

Good luck.





so i just remove/delete the include line with the gl/device.h?

dorbie
11-14-2007, 08:36 PM
Yes, but you'll also need to delete calls to getdev() and qdevice() and a bunch of undefined tokens that will also be thrown up in the code as a result.

The whole windowing and input system will have to be rewritten but it's basic stuff. It's just never been cleaner or simpler than Iris GL apps so that winconfig() winopen() call is going to bloat into a few dozen lines of X11 & GLX cruft or similar platform specific code.

There is a porting script which does this I think.

http://www.google.com/search?hl=en&rls=R...+porting+script (http://www.google.com/search?hl=en&rls=RNWN%2CRNWN%3A2006-49%2CRNWN%3Aen&q=iris+gl+to+opengl+porting+script)