SFML community forums
Help => Graphics => Topic started by: Syntactic Fructose on June 22, 2014, 05:32:44 pm
-
I'm currently using SFML to create my window and handle input in a ModernOpenGL program. Everything works great, but I want to begin designing and UI for the program that will create a highly customizable environment. Currently all of my drawing is done with OpenGL 3.3, is it possible to draw openGL then somehow switch to SFML and draw SFML objects and such? Is this a even a good idea?
-
If you're using SFML for creating just the window and handling input, why not just something more lightweight like GLFW3 or SDL, GLFW is only desktop platforms but SDL is for all platforms.
SFML is a great library but you'd need to be utilizing more than just Window creation and Input for it to be worth using over other alternatives. This is strictly my own opinion but you get the idea.
If you're using OpenGL to draw then why not just wrap your OpenGL draw calls into a function or class and just use that?
-
Yes, the last chapter of the SFML + OpenGL tutorial (http://www.sfml-dev.org/tutorials/2.1/window-opengl.php#using-opengl-together-with-the-graphics-module) shows how.