I am just starting to learn Managed DirectX9.0a and i was wondering how you would go about adding a picture to a surface in DirectX. If you could point me to a website or tell me what it is called exactly that would would be great. Thanks.
You cant apply surfaces to meshes. You can apply textures, but if you are using the X file format and the Mesh class it will already have all the texture info and the textures will be mapped. You dont have to worry about that.
The x file generally just has a filename. If you look in the code generated by the Direct3D wizard, youll see the code needed to load the textures (plus a whole lot more!). Just create a new DirectX project and choose to add a mesh and youll get the code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.