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

Author Topic: SFML OpenGL version  (Read 3198 times)

0 Members and 1 Guest are viewing this topic.

Ganado

  • Newbie
  • *
  • Posts: 34
  • Moo, I say.
    • View Profile
    • FOnline Engine, check it out.
SFML OpenGL version
« on: September 14, 2014, 09:06:11 pm »
Sorry if this doesn't belong here or has been discussed. I have tried to search for opengl and the only useful thing I've found is this little snippet http://en.sfml-dev.org/forums/index.php?topic=1817

What version of OpenGL does SFML use? Apparently Intel drivers don't support 3.3+ so does SFML use OpenGL 2.1? In your opinion, is it okay to still learn OpenGL through version 2.1 even though it's old? Thanks for reading :)



Edit: Found this http://en.sfml-dev.org/forums/index.php?topic=1034 so would that mean that SFML uses 1.1? or does that just mean there's a bunch of pre-processor macros to keep cross-compatibility with older OpenGL versions?

Edit 2: The search function on the forum seems to not be able to find all instances of "opengl". For instance, I can't seem to find this page http://en.sfml-dev.org/forums/index.php?topic=16281.0 when searching for opengl
« Last Edit: September 14, 2014, 09:14:49 pm by Ganado »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11037
    • View Profile
    • development blog
    • Email
Re: SFML OpenGL version
« Reply #1 on: September 14, 2014, 11:46:00 pm »
SFML uses internally OpenGL 2.1 (or slightly higher) and no, it's not advised to learn dead old OpenGL. While SFML still uses that old version, it doesn't limit the user to using that old version as well. You can - if you know how and do it properly - use OpenGL 4 with SFML.

For the search, you need to keep in mind, that if you use the search field at the top right, it will search only in the current sub-forums or current thread.
Unfortunately however there still seems to be an issue with the search engine, if the keyword is too common, it will only return one page of results, in that case try to add something additional to the keyword, e.g. "opengl version". I hope to soon get around to fix this issue. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Ganado

  • Newbie
  • *
  • Posts: 34
  • Moo, I say.
    • View Profile
    • FOnline Engine, check it out.
Re: SFML OpenGL version
« Reply #2 on: September 15, 2014, 02:22:06 am »
Thanks for the reply, I should be able to get some nvidia stuff to work after I mess around with some with windows and linux... ugh why can't the hardest part about programming just be programming.  ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML OpenGL version
« Reply #3 on: September 15, 2014, 02:13:46 pm »
SFML is based on OpenGL 1.1, only shaders require a 2.x driver.
Laurent Gomila - SFML developer