rename OpenGL -> DesktopGL
This commit is contained in:
parent
6293d549dd
commit
c82bce200e
@ -3,7 +3,7 @@ using System;
|
|||||||
|
|
||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
|
|
||||||
public class OpenGLDisplay : IDisplay {
|
public class DesktopGLDisplay : IDisplay {
|
||||||
private GameWindow window;
|
private GameWindow window;
|
||||||
private GraphicsDeviceManager graphics;
|
private GraphicsDeviceManager graphics;
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ namespace SemiColinGames {
|
|||||||
|
|
||||||
public void SetFullScreen(bool fullScreen) {
|
public void SetFullScreen(bool fullScreen) {
|
||||||
if (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".
|
// gameplay GIFs".
|
||||||
window.IsBorderless = true;
|
window.IsBorderless = true;
|
||||||
// graphics.PreferredBackBufferWidth = 720;
|
// graphics.PreferredBackBufferWidth = 720;
|
||||||
@ -35,11 +35,11 @@ namespace SemiColinGames {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class OpenGLProgram {
|
public static class DesktopGLProgram {
|
||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main() {
|
static void Main() {
|
||||||
using (var game = new SneakGame()) {
|
using (var game = new SneakGame()) {
|
||||||
game.Services.AddService(typeof(IDisplay), new OpenGLDisplay());
|
game.Services.AddService(typeof(IDisplay), new DesktopGLDisplay());
|
||||||
game.Run();
|
game.Run();
|
||||||
}
|
}
|
||||||
}
|
}
|
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
@ -5,7 +5,7 @@ VisualStudioVersion = 16.0.29613.14
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWP", "UWP\UWP.csproj", "{21570905-5FFD-49FC-B523-1E7E6F191142}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWP", "UWP\UWP.csproj", "{21570905-5FFD-49FC-B523-1E7E6F191142}"
|
||||||
EndProject
|
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
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Content", "Content\Content.csproj", "{304FB3E1-0AC3-4331-BA87-0CA35F335203}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Content", "Content\Content.csproj", "{304FB3E1-0AC3-4331-BA87-0CA35F335203}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Loading…
Reference in New Issue
Block a user