SFML community forums
Help => Window => Topic started 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?
-
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 ;)
-
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