its a simple question:
How did we move/change the position of a window/device in NOT fullscreen mode?
tank you
Window/Device position
-
- Posts: 26
- Joined: Fri Aug 20, 2010 11:07 am
- Location: Bulgaria
well, if you're writing for windows, you can use the win api :
you can search MSDN for the function.
the windowhandle can be obtained the following way (the example is for OpenGL, else check the Irrlicht reference)
pixelsX and pixelsY are the new position of the top left corner of the window.
windowsizeX and windowsizeY are the size of the window when you were creating the device;
redraw should be true.
Code: Select all
MoveWindow(windowhandle, pixelsX, pixelsY, windowsizeX, windowsizeY, redraw?);
the windowhandle can be obtained the following way (the example is for OpenGL, else check the Irrlicht reference)
Code: Select all
HWND winhandle = reinterpret_cast<HWND>(driver->getExposedVideoData().OpenGLWin32.HWnd);
windowsizeX and windowsizeY are the size of the window when you were creating the device;
redraw should be true.