## Recommended Posts

congacon    122
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 on other sites
Hunter_Ex    976
simple

// create surfaceLPDIRECT3DTEXTURE9 myTexture;// load into surfaceD3DXCreateTextureFromFile(d3dDevice,"myimage.bmp",&myTexture);

hunter_ex