Render a BMP, JPEG, or PNG Image with DirectX?
问题 How do you render a BMP, JPEG, or PNG image file in 3D with DirectX in Windows? (E.g. let's say I want to render four images so that they look like a cubicle or something.) I've seen this done easily with a Java OpenGL library (JME I think?), but it seems like DirectX needs textures, and doesn't take in regular images. :( Is this correct? If so, how do I convert it to a texture programmatically? 回答1: DirectX 9: D3DXCreateTextureFromFile DirectX 10: D3DX10CreateTextureFromFile and