07-21-2003, 02:40 AM
main()
{
......
a=window 1;
.....
b=window2;
set a;
draw()
.....
set b
draw();
.....
}
draw()
{
......
}
my code is something like that.
I uesd the same draw function in both the windows( both the window has different view points)
object is drawn in the 1st one but not the second. fuction call works perfectly(checked it with a "draw" line apart from the object. line was drawn but not the object.)
related
while doing a different task I tried to calll the draw function second time in one window(kinda redrawing the object). nothing drawn in the window.(rest of them-function call, control transfers work perfectly)
my questions are
1. how to get the object in the second window
2. can i use the same drawing function in different windows
3. if i use glutPostRedisplay() what are the things will be updated in main program and screen(ex. which functions will be called, what variables are updated etc.)
Many Thanks
Mil
{
......
a=window 1;
.....
b=window2;
set a;
draw()
.....
set b
draw();
.....
}
draw()
{
......
}
my code is something like that.
I uesd the same draw function in both the windows( both the window has different view points)
object is drawn in the 1st one but not the second. fuction call works perfectly(checked it with a "draw" line apart from the object. line was drawn but not the object.)
related
while doing a different task I tried to calll the draw function second time in one window(kinda redrawing the object). nothing drawn in the window.(rest of them-function call, control transfers work perfectly)
my questions are
1. how to get the object in the second window
2. can i use the same drawing function in different windows
3. if i use glutPostRedisplay() what are the things will be updated in main program and screen(ex. which functions will be called, what variables are updated etc.)
Many Thanks
Mil