Skip to content

Instantly share code, notes, and snippets.

@mellinoe
Created February 8, 2017 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mellinoe/3208d651e021acfb9b187e820f5115fd to your computer and use it in GitHub Desktop.
Save mellinoe/3208d651e021acfb9b187e820f5115fd to your computer and use it in GitHub Desktop.
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