-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
117 additions
and
40 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<linker> | ||
<assembly fullname="Sekai.OpenGL" preserve="all"/> | ||
<assembly fullname="Sekai.OpenAL" preserve="all"/> | ||
<assembly fullname="Sekai.Desktop" preserve="all"/> | ||
</linker> |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright (c) Cosyne | ||
// Licensed under MIT. See LICENSE for details. | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Reflection; | ||
using Sekai.Mathematics; | ||
using Sekai.Windowing; | ||
|
||
namespace Sekai; | ||
|
||
/// <summary> | ||
/// Options passed to <see cref="Host"/> during initialization. | ||
/// </summary> | ||
public sealed class HostOptions | ||
{ | ||
/// <summary> | ||
/// The window's title. | ||
/// </summary> | ||
public string Title { get; init; } = Assembly.GetEntryAssembly()?.GetName()?.Name ?? "Sekai"; | ||
|
||
/// <summary> | ||
/// The host's tick mode. | ||
/// </summary> | ||
public TickMode TickMode { get; init; } = TickMode.Variable; | ||
|
||
/// <summary> | ||
/// The host's update rate. | ||
/// </summary> | ||
public double UpdateRate { get; init; } = 120.0; | ||
|
||
/// <summary> | ||
/// The window's size. | ||
/// </summary> | ||
public Size WindowSize { get; init; } = new Size(1280, 720); | ||
|
||
/// <summary> | ||
/// The window's border presentation. | ||
/// </summary> | ||
public WindowBorder WindowBorder { get; init; } = WindowBorder.Resizable; | ||
|
||
/// <summary> | ||
/// The arguments passed when the program was launched. | ||
/// </summary> | ||
public IReadOnlyList<string> Arguments { get; } = Environment.GetCommandLineArgs(); | ||
|
||
/// <summary> | ||
/// The environment variables passed when the program was launched. | ||
/// </summary> | ||
public IDictionary Variables { get; } = Environment.GetEnvironmentVariables(); | ||
} |
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
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
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
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
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
Oops, something went wrong.