12-26-2001, 05:26 PM
I haven't had anbything to do with DirectX before so hopefully someone can help me.
Is there a way to put pixels onto the screen using DirectDraw, in a way similar to the PSET function (x location, y location, col value), and is it quicker than using the PSET function in VB?
12-27-2001, 08:57 AM
I've never used DX either..... but I think it does away with all the single pixel darwing stuff and replaces it with much better things. If you want to do single pixel stuff, using the GetPixel and SetPixel API are normally fast enough, unless you're drawing more than a few hundred....
Squirm might know this one. Hes the resident DX master. Hail thee to Squirm!!!...... images/icons/wink.gif
01-06-2002, 08:30 AM
i don't think there is a pset equivalant, and believe me, i've looked!
01-06-2002, 10:17 AM
i found it! it's DDPutPixel!
01-06-2002, 10:29 AM
I already replied to this, must have got lost in the forum change. The fastest method would be to unlock the screen surface and thus gain direct access to memory. Below is a link to a little 'tutorial' :
:p Direct Memory Access (DirectX 4 VB) (http://188.8.131.52//Tutorials/DirectX7/DD_Memory.asp)
01-06-2002, 02:14 PM
thanx! (if it's any good. i haven't looked at it, but if it tells me how to do that it's AWSOME!) i've tried accessing direct memory in c and asm, but it doesn't work. i guess it's being overwritten right after i write it. how can i lock the screen using plain c or asm? (i'd ask about vb but i know there can't be a way.).