Thread: opengl

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    465

    opengl

    I know I know someone is going to start laughing their ass off but how do you lauch opengl? Is opengl a program or do you have to use a graphics program? I'm confused?
    My computer is awesome.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    580
    OpenGL is an interface which gives you access to the functionality implemented in your video card's device drivers in order to render primitives (polygons).
    See you in 13

  3. #3
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    OpenGL is a graphics library. You have to include certain files in your linking, and #include certain headers. All of this is explained at the NeHe website, which you can find under the links in the Game Programming forum.

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    So does opengl work with c++ or just c or what? I don't know any c whatsoever


    Edit: how do I get to designing stuff for the game?
    My computer is awesome.

  5. #5
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    OpenGL works fine with C++. Did you just ignore that link I posted last time you asked something like this?

    Also, SLOW DOWN. You're trying to take on things you're obviously not prepared to. You don't just jump right into programming the next Warcraft. You learn the language and then move from there.

  6. #6
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    I understand what your saying, but if I know how to do this then I have more motive/ideas for programs. That way I will have more stuff to mess around with and in turn I will get curious about something, attempt it, ask questions, learn a great deal in the process.
    My computer is awesome.

  7. #7
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    > I understand what your saying

    You obviously don't.

  8. #8
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    ok............... so maybe I don't I'll just go read myself some tutorials then.
    My computer is awesome.

  9. #9
    Registered User Scribbler's Avatar
    Join Date
    Sep 2004
    Location
    Aurora CO
    Posts
    266
    Quote Originally Posted by cerin
    <snip>...That way I will have more stuff to mess around with and in turn I will get curious about something, attempt it, ask questions, learn a great deal in the process.
    Nope, you're trying to run when you've yet to know how to walk. All you'll do is motivate yourself to tackle something you can't handle, get frustrated, and most likely give up. At best, all you'll do is quadruple the amount of time it'll take you to learn the fundamentals of C++, and even then your grasp will be flawed.

  10. #10
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    I don't know where you are in your learning of C++, but from what I gather, I am inclined to think that the advice of the others is quite appropriate. If you are through the basics, here is something to consider:
    Learn the STL real well.
    - It is a much easier library to get started off with than OpenGL.
    - It is a very useful library in a lot of programming contexts.
    - It uses a number of techniques that are good to know.
    - The way it is designed, it helps reinforce good design habits. This last one is real important. Something like OpenGL is a bit looser, and it is pretty easy to write code with it that is seriously lacking in design.

    Cheers
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  11. #11
    Registered User
    Join Date
    Mar 2003
    Posts
    580
    So does opengl work with c++ or just c or what? I don't know any c whatsoever


    Edit: how do I get to designing stuff for the game?
    C++ encapsulates C (for the most part, with some various nit picky differences). what I'm telling you is that if you know C++, you essentially know C, and I *know* they are different but don't argue with me in this scenario.

    And again, OpenGL is a set of function pointers. These point to functions implemented inside your video card device drivers. You can tell your video card to do things like draw triangles on the screen.

    Designing stuff for the game is TOTALLY different from learning to program with OpenGL. If you just want to MAKE games, I wouldn't suggest learning programming, as, well, it's extremely hard.


    Also, SLOW DOWN. You're trying to take on things you're obviously not prepared to. You don't just jump right into programming the next Warcraft. You learn the language and then move from there.
    Yeah...you would likely quickly become overwhelmed and demotivated and just quit (which to be honest is what happens to the majority of people that try to make it with game programming).


    I'd also like people to just kind of back off of cerin for a little bit. Posting a bunch of links and saying 'go read this on your own' isn't always the best advice when you don't even understand the very basic *idea* of what it is you are reading about. I'm not saying I'm going to wipe his arse for him, I'm just saying it sometimes helps to kind of, you know, help give them a foot in the door by explaining things in lay men's terms. He was actually asking very easy-to-answer, very specific questions.
    Last edited by Darkness; 01-21-2005 at 09:30 PM.
    See you in 13

  12. #12
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    It's completely logical what we're doing. Why explain something to somebody when somebody has already done it, even more efficiently than we could?

    We gave him the sources, and now he can use them to his discretion, whether or not he should.

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, 10:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12: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, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM