Created
February 8, 2017 08:26
-
-
Save mellinoe/3208d651e021acfb9b187e820f5115fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); | |
OpenTKWindow window = new SameThreadWindow(); | |
RenderContext rc; | |
if (isWindows && !args.Contains("opengl")) | |
{ | |
rc = new D3DRenderContext(window) | |
} | |
else | |
{ | |
rc = new OpenGLRenderContext(window); | |
} | |
window.Title = "Veldrid TinyDemo"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment