SFML community forums
Help => General => Topic started by: Mr_Gnome on November 23, 2010, 09:26:27 am
-
I'm thinking about making a game that would involve the player to move the window.
Is it possible with SFML to detect how much the window was moved by or in what direction the Window moved? If so how would I do this? If it isn't possible with SFML, what if I embedded it into QT or wxWidgets?
-
In fact, as you can read it here (http://www.sfml-dev.org/documentation/1.6/classsf_1_1Event.htm), SFML won't notice you with an event when the window is moved.
So you have to use Qt (BTW, QT stands for quicktime) if it has such feature or directly by creating your own OS-specific window and give the handle to SFML.
-
No it doesn't! QT is this: http://qt.nokia.com/products/
QuickTime is this: http://www.apple.com/quicktime/
See? Different things. QT is a very good window manager. QuickTime is one of the worst video players there are :)
Xorlium
-
QT = QuickTime
Qt = http://qt.nokia.com/products/
"QT" is an acronym, "Qt" is not.
-
Ah. Okay then. But I think Hiura was refering to the window manager. I don't think QuickTime has the feature Mr_Gnome was asking for :)
-
But I think Hiura was refering to the window manager.
Qt is a cross-platform application framework, not a window manager (http://en.wikipedia.org/wiki/Window_manager).
-
Ah, sorry about the typo. It would be Qt, but anyways. Is there any way that I could do this? The game would be directed towards GNU/Linux OS's, so I'm looking for any solution that doesn't have Win32 or anything. Would it even be possible with X-Window?
-
Is it really important to get the window movement, or is it enough to create a "window" (either a simple box with it's logic, or using one of the guis made for sfml) in sfml, and then watch it's movement?
-
Well, if it's not worth the effort to get the windows movement, then it wouldn't be important because I'd do something else, but for this game I'd like to make movement of an object within the game be determined by the movement of the window.
-
Oh, I see :)
I know what Qt is (I didn't know it was called Qt and not QT), but I didn't know what "window manager" meant. I thought window manager was what Qt or wxWidgets or GTK is (I fully expect someone to now say those three are completely different things, but I think they are the same thing :))
Xorlium