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

Author Topic: Creating windows using wxwidgets - anti aliasing and vsync  (Read 2570 times)

0 Members and 1 Guest are viewing this topic.

trilavia

  • Newbie
  • *
  • Posts: 28
    • View Profile
Creating windows using wxwidgets - anti aliasing and vsync
« 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
« Last Edit: December 18, 2012, 08:31:08 pm by trilavia »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Creating windows using wxwidgets - anti aliasing and vsync
« Reply #1 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.
Laurent Gomila - SFML developer

trilavia

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Creating windows using wxwidgets - anti aliasing and vsync
« Reply #2 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?


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Creating windows using wxwidgets - anti aliasing and vsync
« Reply #3 on: December 19, 2012, 10:34:13 pm »
You should rather use Qt. It's a rather big stuff, but it's worth it.
Laurent Gomila - SFML developer

trilavia

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Creating windows using wxwidgets - anti aliasing and vsync
« Reply #4 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.

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: Creating windows using wxwidgets - anti aliasing and vsync
« Reply #5 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?
I'm not using SFML nor doing any gamedev lately.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Creating windows using wxwidgets - anti aliasing and vsync
« Reply #6 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.
Laurent Gomila - SFML developer