From: Diederick C. N. <dc...@gm...> - 2012-03-20 02:35:19
|
Hi Tony, On Tue, Mar 20, 2012 at 08:04, Hans Maulwurf <q3...@gm...> wrote: > Hi There, > > before i start with my questions i'd like to say: I'm kind of new to > OpenGL Programming and i'm a beginner. > The Point is, i don't want to misuse this list with my beginner > questions; first one is: is this list okay to ask some questions or > not, or do you know some forums to ask?! Its best to stick to freeglut specific questions on this list (i.e. questions like you ask below). For general stuff, you could try http://www.opengl.org/discussion_boards/ and the gamedev.net forums. > nevertheless, here's the problem: > > this is the code from main: > > 1: glutInit(&argc, argv); > 2: glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); > 3: glutInitWindowSize(640, 480); > 4: glutCreateWindow("GL Test1"); > 5: glutKeyboardFunc(&keyboard); > 6: glutDisplayFunc(&display); > 7: glutCreateWindow("GL Test2"); > 8: glutMainLoop(); > 9: return 0; > > using this will result in, that within the first window "GL Test1" i'll > get my stuff which i want to render. > removing line 4 or 7 will result in a white window. > which means: > removing line 4, opens a white-boxed window "GL Test2", removing line 7 > will result in a white-boxed windows "GL Test1". > only if both lines are used, opens the first window with my draw-stuff > and a 2nd one empty. I can only say I see this too (using defined but empty display and keboard callback functions). Exactly as you say. I'm not sure... the display callback for window one does get called. Any reason you're using GLUT_SINGLE instead of GLUT_DOUBLE by the way? Best, Dee |