【发布时间】:2014-03-05 11:27:14
【问题描述】:
我有 winforms 应用程序,我有纹理 SimpleTexture.xnb 编译为 HiDef。我需要在单独的窗口中从我的 winforms 应用程序运行 XNA 3D 可视化。我试试这个:
private void button1_Click(object sender, EventArgs e)
{
System.Threading.Thread thStartGame = new System.Threading.Thread(StartGame);
thStartGame.Start();
}
private void StartGame()
{
using (Game1 game = new Game1())
{
game.Run();
}
}
但我得到错误: 加载“SimpleTexture”时出错。此文件是为 HiDef 配置文件编译的,无法加载到 Reach GraphicsDevice。
我该怎么做才能运行它??
【问题讨论】: