SFML community forums
Help => Graphics => Topic started by: trilavia on December 18, 2012, 08:16:18 pm
-
Hi, I will specify my problem. My app is written using SFMl gui, but I need native cross platform file chooser (and saver) dialog. So the only option is to use wxWidget's wxFileDialog. However, to call it I must have wxWindow. So I think that I will make the window using wx (to have the wxWindow object) and give the handle to RenderWindow and that RenderWindow will control the main loop and events. However I have a question - when I enable VSYNC using sfml will it work? And what's more iportant, will SFML anti aliasing work when the window is created by wxWidgets?
edit:
While not related to graphics module I'll also ask about it. Will I be able to get events through SFML when I construct render window that way (assuming I don't do event loop at wxwidgets level)?
Thanks
-
when I enable VSYNC using sfml will it work?
Yes.
And what's more iportant, will SFML anti aliasing work when the window is created by wxWidgets?
Yes.
Will I be able to get events through SFML when I construct render window that way (assuming I don't do event loop at wxwidgets level)?
Maybe ;D
The most reliable way to get events is to use wxWidgets ones.
-
Uhh wxWidgets is so painfully and oldschool designed that basically I must manage the window and loop through the wx... No succes with letting SFML manage the window. What a shame that so few libs are as good designed as sfml, irrlicht or tgui... Most are Cish relict, to be honest when I see macro in "c++ "lib (as the wx widgets authors claim), i get sooo angry.
Is creating a normal wx app and creating sub-window for sfml (as in tutorial) a good way to write game map editor?
Or there are better options?
-
You should rather use Qt. It's a rather big stuff, but it's worth it.
-
Yes, wx has ancient api and documentation and learning resources aren't that good... However, I really want to make the editor using python + pyside (awesome qt official binding), as its much more convenient. And there is my question. Can I do sfml subwindow like in C++? But using cython binding of course.
-
You should rather use Qt. It's a rather big stuff, but it's worth it.
What about gtkmm?
-
Can I do sfml subwindow like in C++? But using cython binding of course.
I never tried it, but it should be possible.