SFML community forums

Help => Graphics => Topic started by: trilavia on December 18, 2012, 08:16:18 pm

Title: Creating windows using wxwidgets - anti aliasing and vsync
Post 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
Title: Re: Creating windows using wxwidgets - anti aliasing and vsync
Post by: Laurent on December 18, 2012, 08:34:01 pm
Quote
when I enable VSYNC using sfml will it work?
Yes.

Quote
And what's more iportant, will SFML anti aliasing work when the window is created by wxWidgets?
Yes.

Quote
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.
Title: Re: Creating windows using wxwidgets - anti aliasing and vsync
Post by: trilavia on December 19, 2012, 05:33:09 pm
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?

Title: Re: Creating windows using wxwidgets - anti aliasing and vsync
Post by: Laurent on December 19, 2012, 10:34:13 pm
You should rather use Qt. It's a rather big stuff, but it's worth it.
Title: Re: Creating windows using wxwidgets - anti aliasing and vsync
Post by: trilavia on December 19, 2012, 11:01:50 pm
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.
Title: Re: Creating windows using wxwidgets - anti aliasing and vsync
Post by: FRex on December 19, 2012, 11:24:53 pm
Quote
You should rather use Qt. It's a rather big stuff, but it's worth it.
What about gtkmm?
Title: Re: Creating windows using wxwidgets - anti aliasing and vsync
Post by: Laurent on December 20, 2012, 08:03:58 am
Quote
Can I do sfml subwindow like in C++? But using cython binding of course.
I never tried it, but it should be possible.