Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
glut_fullscrn.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include <X11/Xlib.h>
00009
00010 #include "glutint.h"
00011
00012 void
00013 glutFullScreen(void)
00014 {
00015 if (__glutMotifHints == None) {
00016 __glutMotifHints = XInternAtom(__glutDisplay, "_MOTIF_WM_HINTS", 0);
00017 if (__glutMotifHints == None) {
00018 __glutWarning("Could not intern X atom for WM_COLORMAP_WINDOWS.");
00019 }
00020 }
00021 __glutCurrentWindow->desiredX = 0;
00022 __glutCurrentWindow->desiredY = 0;
00023 __glutCurrentWindow->desiredWidth = __glutScreenWidth;
00024 __glutCurrentWindow->desiredHeight = __glutScreenHeight;
00025 __glutCurrentWindow->desiredConfMask |= CWX | CWY | CWWidth | CWHeight;
00026 __glutPutOnWorkList(__glutCurrentWindow,
00027 GLUT_CONFIGURE_WORK | GLUT_FULL_SCREEN_WORK);
00028 }
00029