Thread: What is it with OpenGL tutorials?

  1. #16
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    >> I use SDL because I want everyone to be able to use my program/game

    Your exectutable binarys are not portable. Only the code. That means that only somebody with a compiler + the know-how will be able to play it when given it in code form.

    Then again, its only a matter of compiling it on the different OS's.

  2. #17
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    >>saw void main and closed the book


    I looked through real fast and didn't see ANY void main's, if you still have the book do you think you could name the page number? I dislike void main and would never use it, so i find it interesting that a book of this caliber would use it.

  3. #18
    Registered User PotitKing's Avatar
    Join Date
    Dec 2001
    Posts
    28

    ok. i agree

    face_master:
    Ok, I agree with you, but I usually distribute under GPL, so compiling on different os'es wouldn't be a big problem.
    % gcc -v
    Configured with: FreeBSD/i386 system compiler
    Thread model: posix
    gcc version 3.3.3 [FreeBSD] 20031106

  4. #19
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Portability is the most important thing there is. Without portability, there would be one language for each platform.

    Why not use SDL or GLUT? These are very good API's and as a Linux programmer,I use SDL because I want everyone to be able to use my program/game, not just other Linux users, and I wouldn't use WinAPI if I was using Windows either. Not caring about portability is just selfish.
    You see, the thing is, I don't care if every fun-loving hippy can play my games. I'm doing this to learn something. I've already learned SDL... and it's a little too *easy* for my liking. Sure, I could use glut with OpenGL, but I doubt "GLUT" looks too impressive on a resume. Learning the Win32 API in parallel with OpenGL has many more advantages than making my programs portable.

    I looked through real fast and didn't see ANY void main's, if you still have the book do you think you could name the page number? I dislike void main and would never use it, so i find it interesting that a book of this caliber would use it.
    It's used in every example.

  5. #20
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    i don't see any void main's in any example, are you sure were talking bout the same book?

    /* I see void functions, but never a void main....*/

  6. #21
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Originally posted by RoD
    i don't see any void main's in any example, are you sure were talking bout the same book?

    /* I see void functions, but never a void main....*/
    OpenGL Superbible 2nd edition?

  7. #22
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    and now we find the mis-communication. I thought u meant u orderd the book i suggested off amazon, i didn't read it right, my fault.

  8. #23
    Shadow12345
    Guest
    honestly, in my opinion, opengl superbible is as good as opengl game programming is as good as nehe is as good as gametuts is as good as msdn...they can all be used to learn OGL, void main's aren't great, but instead of griping too much over that and global variables and other conflicts you have with design simply look past it and learn ogl. Writing OO ogl wrappers seems like, well, a blatant waste of time.

    I like the superbible for the most part, it has most everything you would want to know about the ogl api. The only thing I don't like is the fact that the dude uses math waaaaaaaay to much when it would just be easier to...to uhh... NOT use math, lol.

    Well good luck to everyone doing opengl.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL tutorials
    By ThWolf in forum Game Programming
    Replies: 10
    Last Post: 09-12-2006, 02:19 PM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. 3ds max -> opengl? any tutorials?
    By genghis in forum Game Programming
    Replies: 1
    Last Post: 06-23-2002, 01:46 PM
  4. OpenGL Tutorials
    By SyntaxBubble in forum Game Programming
    Replies: 2
    Last Post: 10-14-2001, 04:13 PM
  5. OpenGL Tutorials
    By BubbleMan in forum Game Programming
    Replies: 3
    Last Post: 09-23-2001, 01:20 PM