08-28-2004, 08:16 PM
Here is how to move a pixel to the right with DirectX and flipping:
1) draw background
2) increment X value
3) draw pixel
4) flip the changes
By drawing the background, you erase the pixel that was drawn at the last flip. Now if you don't draw a background or fill the screen with a color, you get that annoying white flicker when in full screen. Is there any way that I could avoid drawing a background, and have a line created from drawing each pixel? I want to be able to simulate a pixel falling from the top of the screen and when it hits the bottom, leave the pixel there, instead of erasing the pixel after it hits the bottom by drawing the background on the next draw.
1) draw background
2) increment X value
3) draw pixel
4) flip the changes
By drawing the background, you erase the pixel that was drawn at the last flip. Now if you don't draw a background or fill the screen with a color, you get that annoying white flicker when in full screen. Is there any way that I could avoid drawing a background, and have a line created from drawing each pixel? I want to be able to simulate a pixel falling from the top of the screen and when it hits the bottom, leave the pixel there, instead of erasing the pixel after it hits the bottom by drawing the background on the next draw.