Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: OpenGL  (Read 632 times)

Hound

  • Bay Watcher
    • View Profile
OpenGL
« on: September 22, 2010, 04:15:08 am »

I think I may have asked this before (a long time ago) but does anyone have a specific recommendation for a book one could use to learn how to use OpenGL?  I'm a computer science major, but only slightly more than halfway, so far from pro, but I don't consider myself a noob either.

Also, this is totally off topic, but if anyone happens to know how you go about commanding a program to delete a file in C++ that would be excellent.  I'm sure I could find that elsewhere, but you know, if someone has a good link or something I'd be much obliged.
Logged

freeformschooler

  • Bay Watcher
    • View Profile
Re: OpenGL
« Reply #1 on: September 22, 2010, 08:02:09 am »

I don't know about C++, but the OpenGL foundation or whatever provides the OpenGL redbook (in html too: http://www.opengl.org/documentation/red_book/), for the most part, for free. It makes no assumptions about what context you're using and is very good :D try it out yourself.
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: OpenGL
« Reply #2 on: September 22, 2010, 02:39:57 pm »

"This fifth edition has been extensively updated to include the newest features of OpenGL, versions 1.5 and 2.0."

And we're at 4.0 already.

All I can find about OpenGL is either sparse tutorials, ranging from bad to good, and the official documentation is either so unreadable it only serves as a reference, but is usually for the newer functions just plain incomplete. Trial and Error are my masters.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: OpenGL
« Reply #3 on: September 22, 2010, 02:51:10 pm »

NeHe (a vast selection of online tutorials, though I didn't really read them after the first few)?

The official reference pages are very good, too.


Unfortunately, both are online resources, and entirely different approaches to the subject than a book to learn from.


Ideally, to start learning, you want to get tutorial code for how to set up the window and get everything ready, but without any actual rendering, and keep a copy of it to use when trying something new. Then follow some tutorial that introduces one subject at a time until you have at least enough knowledge to try something yourself.
Logged
Eh?
Eh!

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: OpenGL
« Reply #4 on: September 22, 2010, 04:47:14 pm »

For the C++ part try remove. You can also use system to run any shell command.
Logged