I am loading a Texture2d from a stream:
public static Texture2D GetTexture(GraphicsDevice dev, System.Drawing.Bitmap bmp) { Texture2D texture; using (MemoryStream s = new MemoryStream()) { bmp.Save(s, System.Drawing.Imaging.ImageFormat.Jpeg); s.Seek(0, SeekOrigin.Begin); texture = Texture2D.FromStream(dev, s); } return texture; } I want to generate a mipmap for the texture, as my texture looks bad when viewed from afar. How do I do this?