Portál AbcLinuxu, 20. července 2025 03:12


Dotaz: zobrazeni glut aplikace pres celou obrazovku

21.9.2005 23:51 cowman
zobrazeni glut aplikace pres celou obrazovku
Přečteno: 179×
Odpovědět | Admin
Zdravim,

pokousim se rozjet jeden tutorial z nehe, ale nejak mi nefunguje rezim fullscreen. Takhle vypada kod funkce main:

/* Initialize GLUT state - glut will take any command line arguments that pertain to it or X Windows - look at its documentation at http://reality.sgi.com/mjk/spec3/spec3.html */ glutInit(&argc, argv);

/* Select type of Display mode: Double buffer RGBA color Alpha components supported Depth buffer */ glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ALPHA | GLUT_DEPTH);

/* get a 640 x 480 window */ glutInitWindowSize(640, 480);

/* the window starts at the upper left corner of the screen */ glutInitWindowPosition(0, 0);

/* Open a window */ window = glutCreateWindow("Jeff Molofee's GL Code Tutorial ... NeHe '99");

/* Register the function to do all our OpenGL drawing. */ glutDisplayFunc(&DrawGLScene);

/* Go fullscreen. This is as soon as possible. */

glutFullScreen(); // <<<<<<<<<<<<< T A D Y <<<<<<<<<<<

/* Even if there are no events, redraw our gl scene. */ glutIdleFunc(&DrawGLScene);

/* Register the function called when our window is resized. */ glutReshapeFunc(&ReSizeGLScene);

/* Register the function called when the keyboard is pressed. */ glutKeyboardFunc(&keyPressed);

/* Initialize our window. */ InitGL(640, 480); /* Start Event Processing Engine */ glutMainLoop();

return 1;

pokud nezavolam funkci glutFullScreen(), tak aplikace bezi normalne v okne. Pokud ji zavolam, tak se sice natahne pres celou obrazovku, ale dole porad vycuhuje taskbar. Je mozny ho nejak prekryt? Setkali ste se s tim nekdo?

Mam SuSE Linux 9.2, KDE 3.3.0 a FreeGLUT 2.2.0-82.1

Ve hrach (napr. TuxRacer) rezim fullscreen funguje (i kdyz nevim jestli jsou napsany zrovna v glutu), takze by to jit melo...
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

22.9.2005 11:30 petr_p
Rozbalit Rozbalit vše Re: zobrazeni glut aplikace pres celou obrazovku
Odpovědět | | Sbalit | Link | Blokovat | Admin
Neni fullscreen jako fullscreen. Nevim, jestli to je problem X serveru nebo window manageru, ale inspiraci muzes hledat u mplayeru a volby -fstype.
Luboš Doležel (Doli) avatar 22.9.2005 16:06 Luboš Doležel (Doli) | skóre: 98 | blog: Doliho blog | Kladensko
Rozbalit Rozbalit vše Re: zobrazeni glut aplikace pres celou obrazovku
Odpovědět | | Sbalit | Link | Blokovat | Admin
Zkus místo GLUTu používat SDL.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.