• Advertisement
Sign in to follow this  

Load BITMAP in dx9

This topic is 4604 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!!! I am a newbie in DX . I'm reading "Beginning DirectX 9" ebook . That's a good book . i want to load a bitmap from file to surface .I did anything the book showed me but I didn't see anything , the bitmap didn't load . So, can you teach me how to load a bitmap to a surface and give me a sample source code. Thanks a lot.

Share this post


Link to post
Share on other sites
Advertisement
simple



// create surface
LPDIRECT3DTEXTURE9 myTexture;

// load into surface
D3DXCreateTextureFromFile(d3dDevice,"myimage.bmp",&myTexture);




hunter_ex

Share this post


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

  • Advertisement