0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-19 07:59:47 +03:00

create NResUI

This commit is contained in:
bird_egop
2024-11-15 19:06:44 +03:00
parent 0c39485188
commit 1091605e2d
22 changed files with 869 additions and 100 deletions

View File

@ -0,0 +1,7 @@
namespace NResUI.Abstractions
{
public interface IExitReceiver
{
void OnExit();
}
}

View File

@ -0,0 +1,7 @@
namespace NResUI.Abstractions
{
public interface IImGuiPanel
{
void OnImGuiRender();
}
}

View File

@ -0,0 +1,17 @@
using Silk.NET.Input;
namespace NResUI.Abstractions
{
public interface IKeyPressReceiver
{
void OnKeyPressed(Key key);
}
public interface IKeyReleaseReceiver
{
void OnKeyReleased(Key key);
}
public interface IKeyDownReceiver
{
void OnKeyDown(Key key);
}
}

View File

@ -0,0 +1,6 @@
namespace NResUI.Abstractions
{
public interface IService
{
}
}

View File

@ -0,0 +1,10 @@
namespace NResUI.Abstractions
{
public interface IUpdateReceiver
{
/// <summary>
/// Called before every UI render
/// </summary>
void OnUpdate(float delta);
}
}