ali
ali

Reputation: 1

OpenGL version and programming

I am using VS2010 and freeGlut2.8.1, it seems that the openGL version on computer is 4, (also I am new to openGL) I have kept reading the many of the openGL features of earlier version are no longer used in recent version and the pipeline has changed ... , how come I am coding, using the tutorials on openGL red book which is for version 1 and every thing is working ok???

Upvotes: 0

Views: 116

Answers (2)

gokaysatir
gokaysatir

Reputation: 125

You should have a look at modern OpenGL tutorials

IMHO using glbegin / glend pairs allows one to see the big picture. But their usage is never encouraged any more.

Upvotes: 0

Poriferous
Poriferous

Reputation: 1582

You shouldn't be using a deprecated version of OpenGL while serious about programming on it. Since glut is old and its design rather rusty, I suggest using a recent windowing API that allows you to program with OpenGL 3.3+. Examples of such windowing APIs include SDL, SFML, GLFW to name a few. Also, the red book on OpenGL although is useful in understanding how OpenGL works doesn't implement it in the most up-to-date manner. There are plenty of other books out there like OpenGL SuperBible or Shader Cookbook that can get you started.

Upvotes: 1

Related Questions