Hello there,
I have following problem: I want to change the background color of my main window by clicking on a button (rectangle and mouse function) in the subwindow. Is it possible to call the init function for another window? I tried glutSetWindow(main window id) and in the next line glClearColor() but that doesn’t work.
Another attempt was to define global variables for red, green and blue and have a reshape function for the main window with glClearColor(). But the color obviously changes after reshaping the window and not immediately.
I hope anybody can help me.