diff --git a/OpenGL/Icon.bmp b/OpenGL/Icon.bmp
new file mode 100644
index 0000000..2b48165
Binary files /dev/null and b/OpenGL/Icon.bmp differ
diff --git a/OpenGL/Icon.ico b/OpenGL/Icon.ico
new file mode 100644
index 0000000..7d9dec1
Binary files /dev/null and b/OpenGL/Icon.ico differ
diff --git a/OpenGL/OpenGL.csproj b/OpenGL/OpenGL.csproj
new file mode 100644
index 0000000..f335fc3
--- /dev/null
+++ b/OpenGL/OpenGL.csproj
@@ -0,0 +1,32 @@
+
+
+ WinExe
+ netcoreapp3.1
+ false
+ false
+
+
+ app.manifest
+ Icon.ico
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/OpenGL/OpenGLProgram.cs b/OpenGL/OpenGLProgram.cs
new file mode 100644
index 0000000..b781e1d
--- /dev/null
+++ b/OpenGL/OpenGLProgram.cs
@@ -0,0 +1,47 @@
+using Microsoft.Xna.Framework;
+using System;
+
+namespace SemiColinGames {
+
+ public class OpenGLDisplay : IDisplay {
+ private GameWindow window;
+ private GraphicsDeviceManager graphics;
+
+ public void Initialize(GameWindow window, GraphicsDeviceManager graphics) {
+ this.window = window;
+ this.graphics = graphics;
+ window.Title = "Sneak";
+ }
+
+ public void SetFullScreen(bool fullScreen) {
+ if (fullScreen) {
+ // In OpenGL, we misappropriate "fullscreen" to be "the settings good for recording
+ // gameplay GIFs".
+ window.IsBorderless = true;
+ // graphics.PreferredBackBufferWidth = 720;
+ // graphics.PreferredBackBufferHeight = 405;
+ graphics.PreferredBackBufferWidth = graphics.GraphicsDevice.DisplayMode.Width;
+ graphics.PreferredBackBufferHeight = graphics.GraphicsDevice.DisplayMode.Height;
+ } else {
+ window.IsBorderless = false;
+ graphics.PreferredBackBufferWidth = 1920;
+ graphics.PreferredBackBufferHeight = 1080;
+ }
+ Debug.WriteLine("display: {0}x{1}, fullscreen={2}",
+ graphics.PreferredBackBufferWidth,
+ graphics.PreferredBackBufferHeight,
+ fullScreen);
+ graphics.ApplyChanges();
+ }
+ }
+
+ public static class OpenGLProgram {
+ [STAThread]
+ static void Main() {
+ using (var game = new SneakGame()) {
+ game.Services.AddService(typeof(IDisplay), new OpenGLDisplay());
+ game.Run();
+ }
+ }
+ }
+}
diff --git a/OpenGL/app.manifest b/OpenGL/app.manifest
new file mode 100644
index 0000000..afa4213
--- /dev/null
+++ b/OpenGL/app.manifest
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true/pm
+ permonitorv2,permonitor
+
+
+
+
diff --git a/OpenGL/packages.config b/OpenGL/packages.config
new file mode 100644
index 0000000..a9de8b5
--- /dev/null
+++ b/OpenGL/packages.config
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/Sneak.sln b/Sneak.sln
new file mode 100644
index 0000000..cdc187a
--- /dev/null
+++ b/Sneak.sln
@@ -0,0 +1,127 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29613.14
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWP", "UWP\UWP.csproj", "{21570905-5FFD-49FC-B523-1E7E6F191142}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenGL", "OpenGL\OpenGL.csproj", "{E25E2743-F2FD-437B-9411-E55C104451FF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Content", "Content\Content.csproj", "{304FB3E1-0AC3-4331-BA87-0CA35F335203}"
+EndProject
+Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Shared", "Shared\Shared.shproj", "{2785994A-A14F-424E-8E77-2E464D28747F}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharedTests", "SharedTests\SharedTests.csproj", "{C86694A5-DD99-4421-AA2C-1230F11C10F8}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0A43C3DD-813E-4860-AFC0-205D0F0EFE0B}"
+ ProjectSection(SolutionItems) = preProject
+ .editorconfig = .editorconfig
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SharedMSBuildProjectFiles) = preSolution
+ Shared\Shared.projitems*{21570905-5ffd-49fc-b523-1e7e6f191142}*SharedItemsImports = 4
+ Shared\Shared.projitems*{2785994a-a14f-424e-8e77-2e464d28747f}*SharedItemsImports = 13
+ Shared\Shared.projitems*{c86694a5-dd99-4421-aa2c-1230f11c10f8}*SharedItemsImports = 5
+ Shared\Shared.projitems*{e25e2743-f2fd-437b-9411-e55c104451ff}*SharedItemsImports = 5
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|ARM = Debug|ARM
+ Debug|ARM64 = Debug|ARM64
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|ARM = Release|ARM
+ Release|ARM64 = Release|ARM64
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|Any CPU.Build.0 = Debug|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|ARM.ActiveCfg = Debug|ARM
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|ARM.Build.0 = Debug|ARM
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|ARM.Deploy.0 = Debug|ARM
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|ARM64.ActiveCfg = Debug|ARM64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|ARM64.Build.0 = Debug|ARM64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|ARM64.Deploy.0 = Debug|ARM64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|x64.ActiveCfg = Debug|x64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|x64.Build.0 = Debug|x64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|x64.Deploy.0 = Debug|x64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|x86.ActiveCfg = Debug|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|x86.Build.0 = Debug|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Debug|x86.Deploy.0 = Debug|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|Any CPU.ActiveCfg = Release|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|ARM.ActiveCfg = Release|ARM
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|ARM.Build.0 = Release|ARM
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|ARM.Deploy.0 = Release|ARM
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|ARM64.ActiveCfg = Release|ARM64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|ARM64.Build.0 = Release|ARM64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|ARM64.Deploy.0 = Release|ARM64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|x64.ActiveCfg = Release|x64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|x64.Build.0 = Release|x64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|x64.Deploy.0 = Release|x64
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|x86.ActiveCfg = Release|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|x86.Build.0 = Release|x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}.Release|x86.Deploy.0 = Release|x86
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|ARM.ActiveCfg = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|ARM.Build.0 = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|ARM64.ActiveCfg = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|ARM64.Build.0 = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|x64.Build.0 = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Debug|x86.Build.0 = Debug|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|ARM.ActiveCfg = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|ARM.Build.0 = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|ARM64.ActiveCfg = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|ARM64.Build.0 = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|x64.ActiveCfg = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|x64.Build.0 = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|x86.ActiveCfg = Release|Any CPU
+ {E25E2743-F2FD-437B-9411-E55C104451FF}.Release|x86.Build.0 = Release|Any CPU
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Debug|ARM.ActiveCfg = Debug|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Debug|ARM64.ActiveCfg = Debug|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Debug|x64.ActiveCfg = Debug|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Debug|x86.ActiveCfg = Debug|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Debug|x86.Build.0 = Debug|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Release|Any CPU.ActiveCfg = Release|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Release|ARM.ActiveCfg = Release|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Release|ARM64.ActiveCfg = Release|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Release|x64.ActiveCfg = Release|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Release|x86.ActiveCfg = Release|x86
+ {304FB3E1-0AC3-4331-BA87-0CA35F335203}.Release|x86.Build.0 = Release|x86
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|ARM.ActiveCfg = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|ARM.Build.0 = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|ARM64.ActiveCfg = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|ARM64.Build.0 = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|x64.Build.0 = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Debug|x86.Build.0 = Debug|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|ARM.ActiveCfg = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|ARM.Build.0 = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|ARM64.ActiveCfg = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|ARM64.Build.0 = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|x64.ActiveCfg = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|x64.Build.0 = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|x86.ActiveCfg = Release|Any CPU
+ {C86694A5-DD99-4421-AA2C-1230F11C10F8}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {85EDD2CE-D4B6-4920-8425-2A366104EA0A}
+ EndGlobalSection
+EndGlobal
diff --git a/UWP/Assets/LockScreenLogo.scale-200.png b/UWP/Assets/LockScreenLogo.scale-200.png
new file mode 100644
index 0000000..d548e51
Binary files /dev/null and b/UWP/Assets/LockScreenLogo.scale-200.png differ
diff --git a/UWP/Assets/SplashScreen.scale-200.png b/UWP/Assets/SplashScreen.scale-200.png
new file mode 100644
index 0000000..aa66840
Binary files /dev/null and b/UWP/Assets/SplashScreen.scale-200.png differ
diff --git a/UWP/Assets/Square150x150Logo.scale-200.png b/UWP/Assets/Square150x150Logo.scale-200.png
new file mode 100644
index 0000000..2ce05e6
Binary files /dev/null and b/UWP/Assets/Square150x150Logo.scale-200.png differ
diff --git a/UWP/Assets/Square44x44Logo.scale-200.png b/UWP/Assets/Square44x44Logo.scale-200.png
new file mode 100644
index 0000000..f448b81
Binary files /dev/null and b/UWP/Assets/Square44x44Logo.scale-200.png differ
diff --git a/UWP/Assets/StoreLogo.png b/UWP/Assets/StoreLogo.png
new file mode 100644
index 0000000..ca04e83
Binary files /dev/null and b/UWP/Assets/StoreLogo.png differ
diff --git a/UWP/Assets/Wide310x150Logo.scale-200.png b/UWP/Assets/Wide310x150Logo.scale-200.png
new file mode 100644
index 0000000..89cb791
Binary files /dev/null and b/UWP/Assets/Wide310x150Logo.scale-200.png differ
diff --git a/UWP/Package.appxmanifest b/UWP/Package.appxmanifest
new file mode 100644
index 0000000..460877c
--- /dev/null
+++ b/UWP/Package.appxmanifest
@@ -0,0 +1,34 @@
+
+
+
+
+
+ Sneak Demo
+ SemiColin Games
+ Assets\StoreLogo.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/UWP/Properties/AssemblyInfo.cs b/UWP/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..8e5365d
--- /dev/null
+++ b/UWP/Properties/AssemblyInfo.cs
@@ -0,0 +1,29 @@
+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("Sneak")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Sneak")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 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")]
+[assembly: ComVisible(false)]
\ No newline at end of file
diff --git a/UWP/Properties/Default.rd.xml b/UWP/Properties/Default.rd.xml
new file mode 100644
index 0000000..80a960c
--- /dev/null
+++ b/UWP/Properties/Default.rd.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/UWP/UWP.csproj b/UWP/UWP.csproj
new file mode 100644
index 0000000..56461de
--- /dev/null
+++ b/UWP/UWP.csproj
@@ -0,0 +1,201 @@
+
+
+
+
+
+ Debug
+ x86
+ {21570905-5FFD-49FC-B523-1E7E6F191142}
+ AppContainerExe
+ Properties
+ SemiColinGames
+ latest
+ Sneak
+ en-US
+ UAP
+ 10.0.18362.0
+ 10.0.17134.0
+ 14
+ true
+ 512
+ {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+
+
+ WindowsStoreApp
+ B8F461B8E646D1DFB7110FE44442EDA3E61FBC26
+ True
+ False
+ SHA256
+ True
+ True
+ Always
+ x86|x64|arm|arm64
+ 0
+
+
+ true
+ bin\WindowsUniversal\$(Platform)\$(Configuration)\
+ DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP
+ ;2008
+ full
+ ARM
+ false
+ prompt
+ true
+
+
+ bin\WindowsUniversal\$(Platform)\$(Configuration)\
+ TRACE;NETFX_CORE;WINDOWS_UAP
+ true
+ ;2008
+ pdbonly
+ ARM
+ false
+ prompt
+ true
+ true
+
+
+ true
+ bin\WindowsUniversal\$(Platform)\$(Configuration)\
+ DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP
+ ;2008
+ full
+ x64
+ false
+ prompt
+ true
+
+
+ bin\WindowsUniversal\$(Platform)\$(Configuration)\
+ TRACE;NETFX_CORE;WINDOWS_UAP
+ true
+ ;2008
+ pdbonly
+ x64
+ false
+ prompt
+ true
+ true
+
+
+ true
+ bin\WindowsUniversal\$(Platform)\$(Configuration)\
+ DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP
+ ;2008
+ full
+ x86
+ false
+ prompt
+ true
+
+
+ bin\WindowsUniversal\$(Platform)\$(Configuration)\
+ TRACE;NETFX_CORE;WINDOWS_UAP
+ true
+ ;2008
+ pdbonly
+ x86
+ false
+ prompt
+ true
+ true
+
+
+ PackageReference
+
+
+ true
+ bin\ARM64\Debug\
+ DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP;CODE_ANALYSIS
+ ;2008
+ true
+ full
+ ARM64
+ false
+ 7.3
+ prompt
+ MinimumRecommendedRules.ruleset
+ true
+
+
+ bin\ARM64\Release\
+ TRACE;NETFX_CORE;WINDOWS_UAP;CODE_ANALYSIS
+ true
+ ;2008
+ true
+ pdbonly
+ ARM64
+ false
+ 7.3
+ prompt
+ MinimumRecommendedRules.ruleset
+ true
+
+
+
+
+
+
+
+ Designer
+
+
+ Content\Content.mgcb
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6.2.10
+
+
+ 12.0.3
+
+
+ 4.2.0
+
+
+ 4.2.0
+
+
+ 4.2.0
+
+
+ 4.2.0
+
+
+ 4.2.0
+
+
+ 4.2.0
+
+
+
+
+ 14.0
+
+
+
+
+
+
+
+
+
+
diff --git a/UWP/UwpProgram.cs b/UWP/UwpProgram.cs
new file mode 100644
index 0000000..026a2e3
--- /dev/null
+++ b/UWP/UwpProgram.cs
@@ -0,0 +1,42 @@
+using Microsoft.Xna.Framework;
+using Windows.Foundation;
+using Windows.UI.ViewManagement;
+
+namespace SemiColinGames {
+
+ public class UwpDisplay : IDisplay {
+ private GraphicsDeviceManager graphics;
+
+ public void Initialize(GameWindow window, GraphicsDeviceManager graphics) {
+ this.graphics = graphics;
+ SetFullScreen(true);
+ }
+
+ public void SetFullScreen(bool fullScreen) {
+ graphics.IsFullScreen = fullScreen;
+ graphics.ApplyChanges();
+
+ Debug.WriteLine("display: {0}x{1}, fullscreen={2}",
+ graphics.PreferredBackBufferWidth,
+ graphics.PreferredBackBufferHeight,
+ fullScreen);
+ }
+ }
+
+ public class UwpSneakGame : SneakGame {
+ public UwpSneakGame() {
+ Services.AddService(typeof(IDisplay), new UwpDisplay());
+ }
+ }
+
+ public static class UwpProgram {
+ static void Main() {
+ ApplicationView.PreferredLaunchViewSize = new Size(1920, 1080);
+ // Could also choose FullScreen here, if we wanted.
+ ApplicationView.PreferredLaunchWindowingMode =
+ ApplicationViewWindowingMode.PreferredLaunchViewSize;
+ var factory = new MonoGame.Framework.GameFrameworkViewSource();
+ Windows.ApplicationModel.Core.CoreApplication.Run(factory);
+ }
+ }
+}