FNA安装及使用:https://www.xnadevelop.com/csharp-developing-cross-platform-games/fna-install/

开发环境:

windows7 SP1环境下必须安装:

1. MonoGame3.6,亲测MonoGame 3.5.1也支持!

2.安装VC++ 2012 ,否则报FreeType6.dll未找到异常。下载地址:https://www.xnadevelop.com/wp-content/uploads/2017/06/vcredist_x64.zip

3.安装VC++2013,否则报FreeImage.dll未找到异常。下载地址:https://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x64.exe

4.安装DirectX SDK (June 2010)。下载地址:https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe

5.另外FNA默认使用的是OpenGL2.1,显卡需要支持OpenGL2.1以上。请参考显卡官网说明,以下是intel显卡的查询地址:

https://www.intel.com/content/www/us/en/support/articles/000005524/graphics-drivers.html?wapkw=opengl

我这破主板G14很明显默认不支持FNA

image

所以需要修改为DirectX:

1.打开http://opensource.spotify.com/cefbuilds/index.html,根据系统下载相应的包(下载Sample Application里面就有需要的dll)。我的系统是windows7 64位

http://opensource.spotify.com/cefbuilds/cef_binary_76.1.9%2Bg2cf916e%2Bchromium-76.0.3809.87_windows64_client.tar.bz2

image

英文说明地址:https://github.com/FNA-XNA/FNA/wiki/4:-FNA-and-Windows-API#direct3d-support

2.加压以后找到libGLESv2.dlllibEGL.dll两个文件,复制到项目Bin目录里的x64或x86文件夹内