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

Author Topic: SFML GUI overlaying a modernGL program, is this possible?  (Read 2041 times)

0 Members and 1 Guest are viewing this topic.

Syntactic Fructose

  • Jr. Member
  • **
  • Posts: 80
  • Overflowing stacks and eating snacks
    • View Profile
SFML GUI overlaying a modernGL program, is this possible?
« 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?

Fitzy

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: SFML GUI overlaying a modernGL program, is this possible?
« Reply #1 on: June 22, 2014, 05:44:54 pm »
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?
« Last Edit: June 22, 2014, 05:51:08 pm by Fitzy »

G.

  • Hero Member
  • *****
  • Posts: 1592
    • View Profile
Re: SFML GUI overlaying a modernGL program, is this possible?
« Reply #2 on: June 22, 2014, 05:45:32 pm »

 

anything