How to read direct3d texture pixels

Posted by Mr Bell on Stack Overflow See other posts from Stack Overflow or by Mr Bell
Published on 2010-06-08T15:19:12Z Indexed on 2010/06/08 15:22 UTC
Read the original article Hit count: 365

Filed under:
|

So I have a x8r8g8b8 formatted IDirect3DSurface9 that contains the contents of the back buffer. When I call LockRect on it I get access to a struct containing pBits, a pointer to the pixels I assume, and and integer Pitch (which I am very unclear about its purpose).

How to read the individual pixels?

Visual Studio 2008 C++

© Stack Overflow or respective owner

Related posts about c++

Related posts about direct3d