17.01.2021

+ WPF-Support
+ Game Controller System
+ GameKeybind System

+ SM_WPF_TEST
This commit is contained in:
Michel Fedde 2021-01-17 21:13:37 +01:00
parent af90d617d3
commit 6f23a80f7f
60 changed files with 1536 additions and 143 deletions

View file

@ -25,7 +25,7 @@ namespace SM.OGL.Framebuffer
private bool _canBeCompiled = true;
private INativeWindow _window;
private IFramebufferWindow _window;
private float _windowScale;
/// <summary>
@ -40,7 +40,7 @@ namespace SM.OGL.Framebuffer
/// </summary>
/// <param name="window"></param>
/// <param name="scale"></param>
public Framebuffer(INativeWindow window, float scale = 1) : this(new Vector2(window.Width * scale,
public Framebuffer(IFramebufferWindow window, float scale = 1) : this(new Vector2(window.Width * scale,
window.Height * scale))
{
_window = window;

View file

@ -0,0 +1,8 @@
namespace SM.OGL.Framebuffer
{
public interface IFramebufferWindow
{
int Width { get; }
int Height { get; }
}
}