Hi,
Is it possible to change the window position with glut after the init ? I mean the distance from left side and top of screen.
Its because I start fullscreen but when I resize to windowed mode my window is part out of screen.
I coudln’t change windowposition than with glutInitWindowPos, I tried with windows api call like this:
switch (key) {
case GLUT_KEY_F1:
if(fullscreen)
{
//glutReshapeWindow(640,480);
window = GetForegroundWindow();
MoveWindow(window, 100, 100, 640, 480, true);
fullscreen = false;
}
But then my window has no frame… no titlebar and stuff, just black retangle.