mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 09:15:29 +00:00
64 lines
1.6 KiB
C#
64 lines
1.6 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace OpenTK.Platform.Egl
|
|||
|
{
|
|||
|
// Holds information about an EGL window.
|
|||
|
class EglWindowInfo : IWindowInfo
|
|||
|
{
|
|||
|
#region Fields
|
|||
|
|
|||
|
IntPtr handle;
|
|||
|
EGLDisplay display;
|
|||
|
EGLSurface surface;
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Constructiors
|
|||
|
|
|||
|
public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface)
|
|||
|
{
|
|||
|
Handle = handle;
|
|||
|
Display = display;
|
|||
|
Surface = surface;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Public Members
|
|||
|
|
|||
|
public IntPtr Handle { get { return handle; } private set { handle = value; } }
|
|||
|
|
|||
|
public EGLDisplay Display { get { return display; } private set { display = value; } }
|
|||
|
|
|||
|
public EGLSurface Surface { get { return surface; } private set { surface = value; } }
|
|||
|
|
|||
|
public void CreateWindowSurface(EGLConfig config)
|
|||
|
{
|
|||
|
Surface = Egl.CreateWindowSurface(Display, config, Handle, null);
|
|||
|
}
|
|||
|
|
|||
|
//public void CreatePixmapSurface(EGLConfig config)
|
|||
|
//{
|
|||
|
// Surface = Egl.CreatePixmapSurface(Display, config, Handle, null);
|
|||
|
//}
|
|||
|
|
|||
|
//public void CreatePbufferSurface(EGLConfig config)
|
|||
|
//{
|
|||
|
// Surface = Egl.CreatePbufferSurface(Display, config, null);
|
|||
|
//}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IDisposable Members
|
|||
|
|
|||
|
public void Dispose()
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|