mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 23:55:46 +00:00
6d0b5eb49f
This is a new platform that can be used then sdl2 is installed on the target system. SDL2 is commercially supported by Valve and provides better support for MacOS compared to our current implementation (Cocoa vs Carbon). It will also help us introduce faster support for new platforms. Existing platforms remain as a fallback and will be automatically used if sdl2 is not installed. Please note that this is still a work in progress. The new mouse and keyboard API is not supported yet. Due to limitations of sdl2, multiple mice/keyboards are also not supported.
30 lines
511 B
C#
30 lines
511 B
C#
using System;
|
|
|
|
namespace OpenTK.Platform.SDL2
|
|
{
|
|
class Sdl2WindowInfo : IWindowInfo
|
|
{
|
|
public IntPtr Handle { get; set; }
|
|
public Sdl2WindowInfo Parent { get; set; }
|
|
|
|
public Sdl2WindowInfo()
|
|
{
|
|
}
|
|
|
|
public Sdl2WindowInfo(IntPtr handle, Sdl2WindowInfo parent)
|
|
{
|
|
Handle = handle;
|
|
Parent = parent;
|
|
}
|
|
|
|
#region IDisposable implementation
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|