Jump to content
  • Advertisement
Sign in to follow this  

Loading an image array using D3DLoadsurfacefromMemory

This topic is 4893 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
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!