Sign in to follow this  
congacon

Load BITMAP in dx9

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this