How fna-xna/fna works
Project type and purpose
• FNA is an open-source reimplementation of Microsoft XNA4 strictly for desktop environments. It provides a runtime library that game developers use in lieu of XNA to build and run 2D/3D games on Windows, Linux, and macOS.
• The README confirms it is a framework library (not an app or service) focusing on faithfully reproducing XNA’s runtime behavior.
File structure
• Top level:
• FNA.sln plus multiple .csproj files (Core, NetFramework, NetStandard) indicate it is a multi-targeted .NET library.
• Makefile and Directory.Build.props handle cross-platform build settings.
• .gitmodules and lib/ contain bundled external native or managed dependencies.
• lib/ submodule directories:
• FAudio (audio backend), FNA3D (graphics backend), SDL2-CS & SDL3-CS (P/Invoke wrappers for SDL), Theorafile (media container).
• src/ hierarchy:
• By namespace: Audio, Graphics (with Effect sub-folders), Content (with readers), Input, Media, Storage, Utilities, FNAPlatform, Design, etc.
• This reflects a layered architecture: core runtime API → subsystem implementations → platform abstraction → native backends.
• abi/ holds “API binding” C# projects duplicating Microsoft.Xna.Framework namespace—used for compatibility testing or reference builds.
README for additional insights
• Documentation lives on a wiki, implying users consult docs for deeper architecture.