captainxyz
04-01-2006, 11:47 PM
Hi,
i use doublebuffer mode to display data(swapbuffer),but the window become flickering. i guess the reason of flickering is that i used the swapbuffer command more than once,codes as following:
draw some data....
swapbuffer()
draw another data...
swapbuffer()
if i only use the swapbuffers command once,the window is not flickering anymore, codes as following:
draw some data...
draw another data...
swapbuffer()
but my data is made of many layers(just like CAD layers),i want to display them layer by layer,so i used the swapbuffer commands more than once(i have to).
anybody can help me ? Thanks
Captain Wens
i use doublebuffer mode to display data(swapbuffer),but the window become flickering. i guess the reason of flickering is that i used the swapbuffer command more than once,codes as following:
draw some data....
swapbuffer()
draw another data...
swapbuffer()
if i only use the swapbuffers command once,the window is not flickering anymore, codes as following:
draw some data...
draw another data...
swapbuffer()
but my data is made of many layers(just like CAD layers),i want to display them layer by layer,so i used the swapbuffer commands more than once(i have to).
anybody can help me ? Thanks
Captain Wens