Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to learn OpenGL 3.x using C? [closed]

I know there are many tutorials on OpenGL out there, but all good tutorials I found use some C++ libraries (mostly GLM) that make it hard to follow for people that would like to use C, or/and were specific to Microsoft Windows.

My Questions are:

  1. Does anybody know a good OpenGL 3.x tutorial that uses C and is not Windows specific?
  2. Which programming language does the OpenGL "redbook" use?
like image 616
drakide Avatar asked Apr 14 '12 11:04

drakide


People also ask

Can you use OpenGL with C?

OpenGL is an API used for drawing 3D graphics. OpenGL is not a programming language; an OpenGL application is typically written in C or C++.

Is it easy to learn OpenGL?

OpenGL is a lot easier to learn by example than from a textbook. Overall it's very complicated, and there are tons of aspects to it even before you ever think about optimization, but individually the different things you can do with OpenGL are not all that hard.

How long does it take to learn OpenGL?

Learning all of this stuff requires time and dedication. So, yes, think in at least one year of studying and practicing.


1 Answers

Does anybody know a good OpenGL 3.x tutorial that uses C and is not Windows specific?

If I remember correctly, Nicol Bolas's tutorials use C++ (for GLM). I suggest you replace GLM with my linmath.h where applicable.

Which programming language does the OpenGL "redbook" use?

The older editions (<= OpenGL-2.1) used pure C. The newer ones I actually didn't read.

like image 147
datenwolf Avatar answered Sep 19 '22 17:09

datenwolf