Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从 XNA 加载远程图片?我有 http 网址。谢谢。
JB
您可以使用来自 silverlight 的库。
像这样的东西。
Texture2D texture; HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(result); using (Stream stream = response.GetResponseStream()) { texture = Texture2D.FromStream(gd.GraphicsDevice, stream); }
读这个