Advertisement

[Newbie] glutFullScreen Question.

Started by December 17, 2000 01:03 AM
2 comments, last by Pure Krome 23 years, 11 months ago
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-
Use glutReshapeWindow see the GLUT ports.
Advertisement
Thanks Anon.

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-
-PK-

This topic is closed to new replies.

Advertisement