Drawing 1 pixel ...

Started by
3 comments, last by Promit 18 years, 9 months ago
Using direct3d9 how would you go about drawing just one pixel...
Advertisement
You could make a window which is one by one pixel(s) in size and then clear the backgroundbuffer with the specific color you want.
yeah thats a way..... what i meant was to draw 1 pixel at a time...
You can either use IDirect3DDevice9::SetRenderState(D3DRS_FILLMODE,D3DFILL_POINT) or lock the backbuffer and write to it using IDirect3DSurface9::LockRect on the surface you get from IDirect3DDevice9::GetBackBuffer().
Or you could just set your primitive type to point list, and provide your coordinates in rhw (if you wanted to draw specific pixels).
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.

This topic is closed to new replies.

Advertisement