diff --git a/README b/README index 108403c..e8c4c4c 100644 --- a/README +++ b/README @@ -1,3 +1,28 @@ +FNA Workbench +-------------- + +This repo is designed to be testbed/workbench in showing usage and intergration +example of libraries like Box2D.XNA and Farseer. +(Obviously Box2D.XNA and Farseer both provide an implmentation of Box2D - +but I think it would be useful to see examples of both) + +Examples +======== + +Here is a list of examples and what they show. You will need the fnalibs +and extract to the binary directory otherwise an exception will get thrown +in Game.cs in its constructor. + +TemplateProject +--------------- + +This is showing the absolute minimium to get a running game window with FNA. +The game window is merely the iconic cornflower blue background windowed. + + +FNA +--- + This is FNA, an XNA4 reimplementation that focuses solely on developing a fully accurate XNA4 runtime for the desktop. diff --git a/TemplateProject/TemplateProject.sln b/TemplateProject/TemplateProject.sln new file mode 100644 index 0000000..103c167 --- /dev/null +++ b/TemplateProject/TemplateProject.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TemplateProject", "TemplateProject\TemplateProject.csproj", "{89645EAC-ADB9-4707-AF21-038EF8ABA2E4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Debug|x86.ActiveCfg = Debug|x86 + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Debug|x86.Build.0 = Debug|x86 + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Release|Any CPU.Build.0 = Release|Any CPU + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Release|x86.ActiveCfg = Release|x86 + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/TemplateProject/TemplateProject/App.config b/TemplateProject/TemplateProject/App.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/TemplateProject/TemplateProject/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/TemplateProject/TemplateProject/Game1.cs b/TemplateProject/TemplateProject/Game1.cs new file mode 100644 index 0000000..22465d9 --- /dev/null +++ b/TemplateProject/TemplateProject/Game1.cs @@ -0,0 +1,20 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace fna_test +{ + class Game1 : Microsoft.Xna.Framework.Game + { + GraphicsDeviceManager graphics; + + public Game1() + { + graphics = new GraphicsDeviceManager(this); + } + + protected override void Draw(GameTime gameTime) + { + GraphicsDevice.Clear(Color.CornflowerBlue); + } + } +} diff --git a/TemplateProject/TemplateProject/Program.cs b/TemplateProject/TemplateProject/Program.cs new file mode 100644 index 0000000..b96fde5 --- /dev/null +++ b/TemplateProject/TemplateProject/Program.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace fna_test +{ + class Program + { + static void Main(string[] args) + { + using (Game1 game = new Game1()) + { + game.Run(); + } + } + } +} diff --git a/TemplateProject/TemplateProject/Properties/AssemblyInfo.cs b/TemplateProject/TemplateProject/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..bb790b3 --- /dev/null +++ b/TemplateProject/TemplateProject/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("TemplateProject")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TemplateProject")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("89645eac-adb9-4707-af21-038ef8aba2e4")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TemplateProject/TemplateProject/TemplateProject.csproj b/TemplateProject/TemplateProject/TemplateProject.csproj new file mode 100644 index 0000000..a1c0496 --- /dev/null +++ b/TemplateProject/TemplateProject/TemplateProject.csproj @@ -0,0 +1,84 @@ + + + + + Debug + AnyCPU + {89645EAC-ADB9-4707-AF21-038EF8ABA2E4} + Exe + Properties + TemplateProject + fna-TemplateProject + v4.5.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\x86\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + true + + + bin\x86\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + true + + + + ..\..\bin\Debug\FNA.dll + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file