true_atlantis
09-03-2005, 04:29 PM
when i create 3 windows using glut like this
for(int i=0;i<3;i++){
glutInitWindowSize(300,300);
glutInitWindowPosition(310*i,0);
int x = glutCreateWindow("View");
winid[i]=x;
}it will create the 3 windows... but if i try to select one, by doing
glutSetWindow(winid[0]); it will not work... the only window that can be accessed is the last one created. is there some sort of initialization so there can be more than one window?
for(int i=0;i<3;i++){
glutInitWindowSize(300,300);
glutInitWindowPosition(310*i,0);
int x = glutCreateWindow("View");
winid[i]=x;
}it will create the 3 windows... but if i try to select one, by doing
glutSetWindow(winid[0]); it will not work... the only window that can be accessed is the last one created. is there some sort of initialization so there can be more than one window?