SFML community forums

General => General discussions => Topic started by: Jalfor on June 25, 2011, 11:32:53 am

Title: OpenGL
Post by: Jalfor on June 25, 2011, 11:32:53 am
Could someone please tell me what version of OpenGL SFML uses? I have had a look around though can't find it anywhere.

While I'm here, could someone recommend a book/tutorial for OpenGL. I have had a look at the tutorials though they seem a bit hard to manage as they skip over some bits of code which leave me stumped.

Thanks in advance.
Title: OpenGL
Post by: OniLinkPlus on June 25, 2011, 02:53:07 pm
SFML doesn't use any specific version. You tell it what version to use when you create a window (it defaults to 2.0 though)
Title: OpenGL
Post by: Canadadry on June 25, 2011, 08:15:45 pm
With SFML2 you can choose which version you want as OniLink10 said. But for sfml1.6 I think you don't have the choice.....
Title: OpenGL
Post by: Jalfor on June 26, 2011, 03:26:56 am
Okay, another two things.

1. Is there any/much difference in the syntax between different OpenGL versions.

2. Back to my original question, does anyone have any suggestion for a book.

PS: I'm using SFML 1.6 as there are no tutorials for 2.0 yet and I am still really a beginner with SFML.
Title: OpenGL
Post by: Tronic on July 06, 2011, 11:13:33 pm
OpenGL SuperBible 5th Edition appears to be the only book even somewhat up to date (OpenGL 3.2/3.3 while the latest standard is 4.1). It is fairly good but you'll want to improvise a bit as they still use GLUT in their examples (and I suppose you would prefer SFML).
Title: OpenGL
Post by: przemo_li on July 16, 2011, 04:50:39 pm
http://stackoverflow.com/questions/3439229/opengl-4-x-learning-resources/

Here are posted resources for learning "modern" OpenGL.

Usually, next OpenGL bring just new stuff, but since OpenGL 3.2 there is "core" profile that removes much old stuff.

SuperBible is best source. (however i do not like it) and
openglbook.com is also good!