What should I learn in c to start OpenGL 1.2

Started by
2 comments, last by fusion1 11 years, 10 months ago
I am interested in starting with OpenGL because I have awful gpu and the cross compatability. I was wondering what aspects of c I should focusing on knowing inside out and which features aren't as important. Also, what kind of scripting languages can be used with c, like lua or is having a scripting interface not an option, thank you for your time.
Advertisement
Huh?

It sounds like you want us to tell you the minimum parts of C you need to know to work with OpenGL?

In that case, it doesn't really work that way, you will need a pretty good understanding of the language before you will get anywhere in OpenGL. There are esoteric parts to the language, but you won't encounter many of them as a new developer. I would say stay away from macros as much as possible; but that generally applies to everyone.

There are no languages that "can be used with C". There are literally hundreds that can be embedded in C, or dozens that look like C.


Putting things simply, you can't skip the learning curve. If you want to program OpenGL, you will need to know how to program first, no getting around that fact.

For the record, you don't need to use C to work with OpenGL.
You probably want to learn c++ instead.. (?) Get a book, eg. accelerated c++.. read that and do the excercises for each chapter.. then you could find some opengl tutorial and start playing around with it.. when you're this far you'll know what to do next :) you can use lua to extend your c/c++ code, but you have a bit to go before you get there so don't worry about it for now..
I bought books on c++ and read them, and i was fine for tge most part with the syntax.They work out fine until I start using Apis. The main Api i used was allegro 4.2. and that was an utter nightmare for me implementing classes with even single inheritance. It may be the tutorial I used was bad or it may be the fact that the api version came out in 2003 and I started using it in 2010 but I'm not sure. I looked at c because I heard from some sources it was quicker to learn if much harder to write.

Thank you for the swift responses

This topic is closed to new replies.

Advertisement