17.01.2021
+ WPF-Support + Game Controller System + GameKeybind System + SM_WPF_TEST
This commit is contained in:
parent
af90d617d3
commit
6f23a80f7f
60 changed files with 1536 additions and 143 deletions
|
|
@ -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;
|
||||
|
|
|
|||
8
SMCode/SM.OGL/Framebuffer/IFramebufferWindow.cs
Normal file
8
SMCode/SM.OGL/Framebuffer/IFramebufferWindow.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace SM.OGL.Framebuffer
|
||||
{
|
||||
public interface IFramebufferWindow
|
||||
{
|
||||
int Width { get; }
|
||||
int Height { get; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue