Archived

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

jeanmyr

Create a per-pixel access to a texture

Recommended Posts

jeanmyr    122
Hello... I will create a per-pixel access to a Direct3D8 texture. For example, to change the 321e pixel on the x axis and 24e pixel on the y axis from blue to red. I suppose the solution use the Lock() function, but I don''t know anymore. If someone has a tutorial about this question... Thanks for all.

Share this post


Link to post
Share on other sites
S1CA    1418
Look at the DX8 docs:

DirectX 8.1 (C++) ->
DirectX Graphics ->
Programmers Guide ->
Using Direct3D ->
Textures ->
Surfaces ->
"Accessing Surface Memory Directly"


That''s the location for the topic in the DX8.1 SDK, but the topic has been in all the SDK docs since around the DX5 days (possibly earlier)!



--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites