Jump to content
  • Advertisement
Sign in to follow this  

What should I learn in c to start OpenGL 1.2

This topic is 2175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!