rename OpenGL -> DesktopGL

This commit is contained in:
Colin McMillen 2020-11-20 17:52:40 -05:00
parent 6293d549dd
commit c82bce200e
7 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ using System;
namespace SemiColinGames {
public class OpenGLDisplay : IDisplay {
public class DesktopGLDisplay : IDisplay {
private GameWindow window;
private GraphicsDeviceManager graphics;
@ -15,7 +15,7 @@ namespace SemiColinGames {
public void SetFullScreen(bool fullScreen) {
if (fullScreen) {
// In OpenGL, we misappropriate "fullscreen" to be "the settings good for recording
// In DesktopGL, we misappropriate "fullscreen" to be "the settings good for recording
// gameplay GIFs".
window.IsBorderless = true;
// graphics.PreferredBackBufferWidth = 720;
@ -35,11 +35,11 @@ namespace SemiColinGames {
}
}
public static class OpenGLProgram {
public static class DesktopGLProgram {
[STAThread]
static void Main() {
using (var game = new SneakGame()) {
game.Services.AddService(typeof(IDisplay), new OpenGLDisplay());
game.Services.AddService(typeof(IDisplay), new DesktopGLDisplay());
game.Run();
}
}

View File

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

@ -5,7 +5,7 @@ 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}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DesktopGL", "DesktopGL\DesktopGL.csproj", "{E25E2743-F2FD-437B-9411-E55C104451FF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Content", "Content\Content.csproj", "{304FB3E1-0AC3-4331-BA87-0CA35F335203}"
EndProject