Archived

This topic is now archived and is closed to further replies.

pixel drawing in directx

This topic is 6165 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

There are lots of tutorials on 3d polygon drawing for directx but i need code for drawing just pixels. Like PutPixel(x,y,red,greed,blue) and yes im sure i want to draw just pixels...ive been using the windows GDI and its horribly slow...

Share this post


Link to post
Share on other sites
find out if 555 or 565
lock and load surfaces
write pixel
unlock and smile

if that isnt enough than i dont know man

p.s. for cool tutorial search under tutorials on this site

Share this post


Link to post
Share on other sites
Lock the surface and retrieve the pointer to the surface data. Lock should pass it on to you. Store it as a byte data type, then write the bytes with the chosen color values. Then unlock the surface...

The Shaz



"I don''t want to be a pie... I don''t like gravy." - Babbs, Chicken Run

SuperNova Games

Share this post


Link to post
Share on other sites