Scrolling dynamically updated bitmap?

I'm new to DirectX but I need to display the following:

I am receiving blocks of 256 bytes of data at about 15 times a second. I need to add each block as a line of 256 pixels (with the byte value determining the colour of the pixel) to the right side of a bitmap. When the width of the bitmap extends past the width of the viewing area, I need to scroll the bitmap one pixel to the left (drop the left-most column of pixels to make room for the new column on the right).

The question is, how can I do this efficiently? Is it possible to create a circular buffer type-of-thing directly on the graphics/video memory? Any pointers towards a suitable solution or examples would be much appreciated.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!