DirectX pixel drawing
-
Hi, so far i newer have coded using DirectX i've found some tutorials to draw bitmaps on screen. Is there no function to draw colored 2d pixels? or some way like we did in dos you know poke(0xA000,(y*320)+x,clr):laugh: So i just want to draw 2d graphics with DirectX.
-
Hi, so far i newer have coded using DirectX i've found some tutorials to draw bitmaps on screen. Is there no function to draw colored 2d pixels? or some way like we did in dos you know poke(0xA000,(y*320)+x,clr):laugh: So i just want to draw 2d graphics with DirectX.
It's possible to draw single pixels in DirectDraw or Direct3D, but the methods are a bit cumbersome and are generally pretty inefficient. Modern graphics hardware exploits parallelism between the GPU and the CPU, and sending commands to draw pixels one by one carries a lot of overhead. That said, here is an article on drawing single pixels in DirectDraw: http://www.gamedev.net/reference/articles/article538.asp[^] - Mike
-
It's possible to draw single pixels in DirectDraw or Direct3D, but the methods are a bit cumbersome and are generally pretty inefficient. Modern graphics hardware exploits parallelism between the GPU and the CPU, and sending commands to draw pixels one by one carries a lot of overhead. That said, here is an article on drawing single pixels in DirectDraw: http://www.gamedev.net/reference/articles/article538.asp[^] - Mike