Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


What should I learn in c to start OpenGL 1.2


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 fusion1   Members   -  Reputation: 118

Like
0Likes
Like

Posted 06 June 2012 - 12:17 PM

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.

Sponsor:

#2 Serapth   Crossbones+   -  Reputation: 5591

Like
0Likes
Like

Posted 06 June 2012 - 12:46 PM

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.

#3 Nanook   Members   -  Reputation: 505

Like
0Likes
Like

Posted 06 June 2012 - 01:50 PM

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..

#4 fusion1   Members   -  Reputation: 118

Like
0Likes
Like

Posted 06 June 2012 - 02:21 PM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS