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 5 of 5

Thread: Where to get gl/device.h

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2007
    Location
    Malaysia
    Posts
    5

    Where to get gl/device.h

    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.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Feb 2005
    Location
    South Tyrol, Italy
    Posts
    105

    Re: Where to get gl/device.h

    This must be a nonstandard file which presumably is provided by the source you are looking at.

    [ www.trenki.net | vector_math (3d math library) | software renderer ]

  3. #3
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Where to get gl/device.h

    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.

  4. #4
    Junior Member Newbie
    Join Date
    Nov 2007
    Location
    Malaysia
    Posts
    5

    Re: Where to get gl/device.h

    Quote Originally Posted by dorbie
    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?

  5. #5
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: Where to get gl/device.h

    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

Posting Permissions

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