I’m trying to write a small chunk of code to grab the backbuffer into an array of pixels. I’ve barely used directX before as I’m more of a OpenGL fan.
My wish is to actually replace some code in a project that grabs the backbuffer using BitBlt and DC which is very slow.
This is supposed to work on all computers and that’s why I chose directx7.
My question is.. how would I do that?
Thank you.
I’m trying to write a small chunk of code to grab the backbuffer into
Share
What I do is to use a helper class to do the lock /unlock as below. Then you use it like so :
} // ReadLock unlocks when it goes out of scope