Jump to content
  • Advertisement
Sign in to follow this  
vvvaaa

Loading an image array using D3DLoadsurfacefromMemory

This topic is 4830 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

Hello, I'm trying to load image array of size (say 640* 480*3) using D3DLoadsurfacefromMemory function. In this process, I first convert image array into imagedata in XRGB format such that first value of imagedata is 0, next value is red, then greeen and so on... Then, I create Texture using D3DCreateTexture, get surface level using Texture->GetSurfaceLevel(), then pass imagedata to D3DLoadsurfacefromMemory function. But I not able to load imagedata to surface. I'm not sure,it is right way to do it or is there any better way of doing the same thing. Any suggestions will be gr8.... thanks Regards

Share this post


Link to post
Share on other sites
Advertisement
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!