UI WIP
This commit is contained in:
@@ -32,15 +32,10 @@ namespace DaggerFramework.Rendering
|
||||
/// </summary>
|
||||
public abstract Vector2 WindowSize { get; }
|
||||
/// <summary>
|
||||
/// Creates the window with a given title and size.
|
||||
/// Creates a window.
|
||||
/// </summary>
|
||||
/// <param name="title">Title of the window.</param>
|
||||
/// <param name="size">Vector2 representing size.</param>
|
||||
public abstract void CreateWindow(string title, Vector2 size);
|
||||
public void CreateWindow(WindowSettings windowSettings)
|
||||
{
|
||||
CreateWindow(windowSettings.Title, windowSettings.Size);
|
||||
}
|
||||
/// <param name="windowSettings">Window settings to use to create the window.</param>
|
||||
public abstract void CreateWindow(WindowSettings windowSettings);
|
||||
|
||||
// TODO: use properties for these.
|
||||
public abstract void SetWindowTitle(string title);
|
||||
@@ -151,6 +146,7 @@ namespace DaggerFramework.Rendering
|
||||
{
|
||||
public string Title;
|
||||
public Vector2 Size = new Vector2(640, 480);
|
||||
public bool Resizable { get; set; }
|
||||
|
||||
public WindowSettings(string title, Vector2 size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user