[Newbie] glutFullScreen Question.
G''Day all.
I''m using glutFullScreen in my game.
What is the function to return to the normal window, so i can toggle between full and not full?
-PK-
-PK-
Thanks Anon.
i''ve now got something to google search for =)
Merry X-Mass!
-PK-
i''ve now got something to google search for =)
Merry X-Mass!
-PK-
-PK-
*2 mins later*
Perfect. First link i hunted for was a function description.
Simple as pie.
So (mainly for the Search Engine here) ..
void glutReshapeWindow(int width, int height);
width :New width of window in pixels.
height :New height of window in pixels.
eg....
if (fullScreen == false)
{
fullScreen = true;
glutFullScreen();
}
else
{
glutReshapeWindow(640, 360);
fullScreen = false;
}
l8r.
-PK-
Perfect. First link i hunted for was a function description.
Simple as pie.
So (mainly for the Search Engine here) ..
void glutReshapeWindow(int width, int height);
width :New width of window in pixels.
height :New height of window in pixels.
eg....
if (fullScreen == false)
{
fullScreen = true;
glutFullScreen();
}
else
{
glutReshapeWindow(640, 360);
fullScreen = false;
}
l8r.
-PK-
-PK-
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement