Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Open GL sfml 2.0  (Read 1908 times)

0 Members and 1 Guest are viewing this topic.

sodah

  • Newbie
  • *
  • Posts: 11
    • View Profile
Open GL sfml 2.0
« 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

sodah

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Open GL sfml 2.0
« Reply #1 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. -.-

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Open GL sfml 2.0
« Reply #2 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.
Laurent Gomila - SFML developer

 

anything