OpenGL - header files...

This is a discussion on OpenGL - header files... within the C++ Programming forums, part of the General Programming Boards category; I'm reading a few tutorials on OpenGL... and all the program examples have "#include <GL/glul.h>" and i cant find that ...

  1. #1
    Registered Abuser Loic's Avatar
    Join Date
    Mar 2007
    Location
    Sydney
    Posts
    115

    OpenGL - header files...

    I'm reading a few tutorials on OpenGL... and all the program examples have "#include <GL/glul.h>" and i cant find that header file... i have done a few searches on google and cant find anything.... anyone know where i can find it?

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    What compiler are you using?

    Compilers like LCC and MinGW have the GL directory included in their respective base include directory, so you might find that you have the OpenGL headers.
    Last edited by MacGyver; 05-15-2007 at 12:05 AM.

  3. #3
    Registered Abuser Loic's Avatar
    Join Date
    Mar 2007
    Location
    Sydney
    Posts
    115
    Dev-C++

    I had a look in the include directory, there is the GL directory there, but the only files in there is "gl.h" "glext.h" & "glu.h"
    Last edited by Loic; 05-15-2007 at 12:25 AM.

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Those are the OpenGL headers. Have fun.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Location
    UK/Norway
    Posts
    485
    you have to link to them in your project settings. And if you are doing the NeHe tutorials you need glut. The easiest way to download this is to use the update thing in dev-c

    Good luck

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    And if you're not using NeHe's tutorials, consider doing so. nehe.gamedev.net
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  7. #7
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    GLU isn't entirely necessary (at least in the beginning) but it provides a lot of functions that make doing things with the stadard gl.h library easier, like fov, orthographic perspective and other quick camera settings. There are a lot more, though.

    Nehe is great but I think they should have gone with a windowing framework like glut or GLFW. It's too cluttered around windows. But I ususally have my OpenGL independent stuff in a class no matter which windowing library I use, I can just create classes of my scene. It took me long enough to learn that.
    Last edited by indigo0086; 05-15-2007 at 12:55 PM.

  8. #8
    Registered Abuser Loic's Avatar
    Join Date
    Mar 2007
    Location
    Sydney
    Posts
    115
    Well I was actually going to do a different tutorial but after having a look over the nehe tutorials I think I am going to do them... Cheers

  9. #9
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    Quote Originally Posted by indigo0086 View Post
    Nehe is great but I think they should have gone with a windowing framework like glut or GLFW.
    Actually, most (if not all) of the tutorials are available in multiple formats, including sdl and glut.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help using Header Files
    By d34n in forum C Programming
    Replies: 8
    Last Post: 04-21-2008, 11:06 PM
  2. Errors with header files in OpenGL using VisualC++
    By wile_spice in forum Game Programming
    Replies: 3
    Last Post: 06-22-2006, 08:56 AM
  3. Visual C++ 05 Express Header Files
    By comwiz in forum C++ Programming
    Replies: 14
    Last Post: 02-16-2006, 06:00 AM
  4. .TGA files in OpenGL
    By ... in forum Game Programming
    Replies: 2
    Last Post: 10-26-2003, 01:48 PM
  5. more header files
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2001, 12:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21