SFML community forums

Help => Window => Topic started by: sodah on August 08, 2012, 07:23:14 pm

Title: Open GL sfml 2.0
Post by: sodah on August 08, 2012, 07:23:14 pm
Hi!

Just started trying to use sfml2 with openGL.
The examples worked fine and all but when i tried to convert
this tutorial: http://openglbook.com/the-book/chapter-4-entering-the-third-dimension/
to sfml from glut i cant get it to work.

if i disable the shaders, aka just making them fail to load i see a white square. So i guess
it got nothing to do with SFML.

Anyone got any other super-easy examples that uses buffer objects that work easily with sfml?

And are there any restrictions on what openGL features i can use with SFML ?

Cheers
sodah
Title: Re: Open GL sfml 2.0
Post by: sodah on August 09, 2012, 09:27:02 pm
nvm, found these tutorials if any beginners like me are interested: http://www.arcsynthesis.org/gltut/
real easy to setup with sfml.

I'm still wondering tho if there are any limitations on openGL in SFML.
i read somewhere here on the forums that there were some flags that could not be set or something. -.-
Title: Re: Open GL sfml 2.0
Post by: Laurent on August 09, 2012, 09:33:02 pm
The only "limitation" is that it creates OpenGL contexts that have the compatibility flag set. So you won't get errors for using deprecated functions.