xna

XNA load in a texture or mesh from a file without using the content pipeline


In XNA, how do I load in a texture or mesh from a file without using the content pipeline?


Solution

  • I believe Texture2D.FromFile(); is what you are looking for.

    It does not look like you can do this with a Model though.

    http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.graphics.texture2d.fromfile.aspx