freako
06-08-2007, 06:06 AM
Hello folks,
I have to implement a 2D waterfall display that would work as follows.
Say our display is 500x500 pixels, when a new line of data arrives, it is draw at the very top of the display and all the previous data is copied one line down.
The easiest way I've come up with is to use glDrawPixels to draw the incoming data and glCopyPixels to copy the 499 topmost lines of data 1 down.
I have a couple of questions:
First, is this the best/most efficient way of doing this? (I may have up to 32 such displays going at once. And their size ranges from 100x100 to 1600x400 in any number of combinations limited only by the display resolution)
Second, as I have other symbols that need to be drawn on top of it but should not get copied down (ex a cursor), how do I ensure that glCopyPixels (or whatever better method one of you suggests :D ) only copies the data and not the symbology?
Any help, hints, links to examples, death threats, would be greatly appreciated.
Thanks!
cheers
I have to implement a 2D waterfall display that would work as follows.
Say our display is 500x500 pixels, when a new line of data arrives, it is draw at the very top of the display and all the previous data is copied one line down.
The easiest way I've come up with is to use glDrawPixels to draw the incoming data and glCopyPixels to copy the 499 topmost lines of data 1 down.
I have a couple of questions:
First, is this the best/most efficient way of doing this? (I may have up to 32 such displays going at once. And their size ranges from 100x100 to 1600x400 in any number of combinations limited only by the display resolution)
Second, as I have other symbols that need to be drawn on top of it but should not get copied down (ex a cursor), how do I ensure that glCopyPixels (or whatever better method one of you suggests :D ) only copies the data and not the symbology?
Any help, hints, links to examples, death threats, would be greatly appreciated.
Thanks!
cheers