Jump to content
  • Advertisement
Sign in to follow this  

using resources

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

i'm using direct x, and i still haven't figured out how to actually use resources. all i know is how to change my exe icon. i want to be able to embed textures and models into my exe file. how am i supposed to do that? is it just as easy as loading them from a file outside the exe? im afraid i might have to change more of my code to use the resource bitmaps instead of just loading them from a file

Share this post


Link to post
Share on other sites
Advertisement
I've never used it, but along with D3DXCreateTextureFromFile, D3DXCreateTextureFromFileInMemory, etc, there is D3DXCreateTextureFromResource. The docs tell you how you can use non-bmp format resources too.

Create shaders, D3DXEffects, etc, all have similar calls.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!