openGL

This is a discussion on openGL within the C++ Programming forums, part of the General Programming Boards category; I would like to learn openGL in order to create a 3D engine... what should I do/know windows API? OpenGL ...

  1. #1
    rebmeM roinuJ
    Join Date
    Mar 2003
    Posts
    8

    openGL

    I would like to learn openGL in order to create a 3D engine...
    what should I do/know windows API?

    • OpenGL tutorials (for dummies)
    • Windows API tutorials for dummies?
    • Libraries/header files?


    what should I get and where should I get it?
    can I use it with a minGW based devcpp compiler when I have
    allegro installed at the same time?

    -Maybe this should be posted in some other forum part as
    windows programming for instance but I don't know
    how much "windowsish" opengl is...(even if I know it's cross
    platform stuff)
    Last edited by red_Marvin; 03-20-2003 at 03:15 PM.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    UK
    Posts
    169

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    http://www.lighthouse3d.com/opengl/glut/

    The above reference is to a tutorial on GLUT, which is the OS independent version of OpenGL. OpenGL is for Windows. It is a library, just like Allegro, so you should be able to one or the other on a given project, can't say I'd try using both on the same project though. OpenGL and GLUT both work with Dev-C++.

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    if you go to the game programming board there are alot of good links for openGL and other graphics/game related stuff...

    Game Programming Links

  5. #5
    rebmeM roinuJ
    Join Date
    Mar 2003
    Posts
    8
    I've downloaded glut now but I don't know how to compile it
    in readme.win it says
    Type "glutmake" to make everything. Try "glutmake clean" to
    delete all intermediate files, and "glutmake clobber" to
    delete all intermediate files and executables. The build
    system will automatically install everything in the places
    specified in the glutwin32.mak file.
    I can't find any glutmake.exe or something, also I have devcpp,
    do I just put the paths to the devcpp library folder in glutwim32.mak?

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    I don't have my compiler at work so I'm just saying this in general terms for now. When I create a new project and I want to use GLUT I first choose console app as the type of project. Then I select Options (I believe that's what it is anyway. If not I'll repost later). Then I add the following flags in the library to add data entry box:

    -lopengl32 -lglaux -lglu32 -lglut32

    After doing that in the correct spot, I include the headers for the above librarys, and iostream and GLUT works fine with my version of Dev-C++.

  7. #7
    rebmeM roinuJ
    Join Date
    Mar 2003
    Posts
    8
    but shouldn't I compile the library first?

    or how do I install a precompiled libray?
    put the lib file in \lib\ ?

  8. #8
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    As I said, I don't have my compiler at work, so I am just going by memory. However, my memory is that I downloaded GLUT, unzipped it, and placed it into the LIB file of Dev-C++---no compiling necessary. Then I went through the steps previously outlined. I'll browse the net, as I think there are instructions out there, too.

  9. #9
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    It's not often a search provides exactly what I look for, but this time I got lucky. Wish I found this earlier as I was starting to work with GLUT, oh well. This should give you all the information you need. Good luck:

    http://ihouse.uow.edu.au/ftp/Program...%20Dev-C++.htm

  10. #10
    rebmeM roinuJ
    Join Date
    Mar 2003
    Posts
    8
    Thanks for the help!

    edit: the example needs glu.h wich isn't described where to download.
    Does it come with the compiler?
    Last edited by red_Marvin; 03-21-2003 at 12:58 PM.

  11. #11
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    You could do a search of the files in your computer seeing if glu.h is already there somewhere. It may come with the compiler. It may come with GLUT download. It definitely comes with download of OpenGL. Now that I think about it I seem to remember needing to download OpenGL, unzip it and save the glu.h in the Include file of the compiler because for some reason in the version of GLUT I had it contained a version of glu.h called alglu (or something like that) but it didn't work, so I brought in the real thing and it worked fine.
    Last edited by elad; 03-21-2003 at 04:48 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 11:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  3. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 11:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM

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