Jump to content
  • Advertisement
Sign in to follow this  
Nebuk

Newbie Question

This topic is 2703 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Guys
I am quite new to directX and I am currently working through some bits and came across an example in DX9 that I wanted to use in my program, it uses the IDirect3DTexture9's LockRect function and I was wondering if there is a way to do this for a ID3D10Texture2D in DX10 or if there is something I am missing?
Thanks for your time
Ben

Share this post


Link to post
Share on other sites
Advertisement

Hi Guys
I am quite new to directX and I am currently working through some bits and came across an example in DX9 that I wanted to use in my program, it uses the IDirect3DTexture9's LockRect function and I was wondering if there is a way to do this for a ID3D10Texture2D in DX10 or if there is something I am missing?
Thanks for your time
Ben


This isn't a perfect 1-to-1 equivalent thing, but you can do something similar to acquire the texture data by calling Map: http://msdn.microsoft.com/en-us/library/bb173867%28v=vs.85%29.aspx
This has an out parameter containing the data: http://msdn.microsoft.com/en-us/library/bb205319%28v=vs.85%29.aspx
The second link has an example of how to acquire and manipulate the data. Hope this helps.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!