SFML community forums

Help => Window => Topic started by: antos on July 28, 2016, 09:05:07 am

Title: Using MODERN OpenGL with SFML
Post by: antos 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?
Title: Re: Using MODERN OpenGL with SFML
Post by: Laurent 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 ;)
Title: Re: Using MODERN OpenGL with SFML
Post by: jamesL 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