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

Author Topic: Using MODERN OpenGL with SFML  (Read 3715 times)

0 Members and 1 Guest are viewing this topic.

antos

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Using MODERN OpenGL with SFML
« on: July 28, 2016, 09:05:07 am »
Hello, i'm developing a FPS game. How i can use MODERN OpenGL with SFML? All examples are written with old versions of OpenGL. Can you give a basic triangle example?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Using MODERN OpenGL with SFML
« Reply #1 on: July 28, 2016, 09:43:58 am »
You use modern OpenGL with SFML the same way you use old OpenGL with SFML. The SFML code stays the same. If you're looking for modern OpenGL tutorials or examples, then this is the wrong place ;)
Laurent Gomila - SFML developer

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Using MODERN OpenGL with SFML
« Reply #2 on: August 01, 2016, 11:07:22 am »
here's some good tutorials on Modern OpenGL
but they use GLFW for window management and glew to get opengl extensions
but I guess you can figure out how to convert it to SFML
 
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/

http://learnopengl.com/#!Getting-started/Hello-Triangle

http://www.codeincodeblock.com/2013/07/modern-opengl-32-tutorial-series-with.html

SFML with OpenGL is very confusing to me
I think GLFW with Glad is much easier

in my opinion, SFML beats SDL and GLFW in just about every area except OpenGL
there are much better web page tutorials and examples on youtube for them with OpenGL