Hi! I am just experimenting with Glut game mode and can't get one thing.
Imagine I have a simple application which renders a textured cube in the origin.
Now when I run the app in a window mode then I can see the cube textured but as soon as I switch to the game mode (full screen) all textures are lost (not displayed). why?
Note that I load textures in main() function not in init().
void keboard (..)
case 'f': if (glutGameModeGet(GLUT_GAME_MODE_POSSIBLE))
// register callbacks again
// and init OpenGL context
I still see a cube which is rendered in the display() function but for some reason all textures disappear. Does it mean that I have to load textures again in init() every time I switch to the game mode?
It can't be true!? How can I use my textures without after switching to game mode?
I also spotted that when I switch to a game mode then my original window (window mode) is still opened as well as teh game mode window. So I have two apps running at teh same time. What about performance? Does Glut somehow disable that window mode when game mode is running?
[This message has been edited by robert_s (edited 03-04-2002).]