How can I parse through a texutre in DirectX? (IDirect3DTexture9*)

Posted by meds on Stack Overflow See other posts from Stack Overflow or by meds
Published on 2010-06-18T15:59:58Z Indexed on 2010/06/18 16:03 UTC
Read the original article Hit count: 238

Filed under:
|
|
|
|

I've been trying to figure out how to parse textures in directx for two reasons: to write my own texture format and to manipulate data in existing IDirect3DTexture9 type textures.

I've been looking at the IDirect3DTexture9::LockRect() function but I'm unsure how it works, are the void* pBits I get out of it in D3DLOCKED_RECT the data in the texture? Does that mean I can read it in by converting it to D3DXCOLOR or something?

Really not sure where to go, any help would be appreciated!

© Stack Overflow or respective owner

Related posts about parsing

Related posts about graphics