mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-06 09:38:24 +00:00
CreateWindow now takes a GLContext.
This commit is contained in:
parent
201f88552d
commit
2e1837b8f0
|
@ -334,7 +334,7 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region public void CreateWindow(DisplayMode mode)
|
#region public void CreateWindow(DisplayMode mode, GLContext glContext)
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Opens a new render window with the given DisplayMode.
|
/// Opens a new render window with the given DisplayMode.
|
||||||
|
@ -347,7 +347,7 @@ namespace OpenTK.Platform.X11
|
||||||
/// Colormap creation is currently disabled.
|
/// Colormap creation is currently disabled.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public void CreateWindow(DisplayMode mode)
|
public void CreateWindow(DisplayMode mode, GLContext glContext)
|
||||||
{
|
{
|
||||||
if (exists)
|
if (exists)
|
||||||
throw new ApplicationException("Render window already exists!");
|
throw new ApplicationException("Render window already exists!");
|
||||||
|
@ -357,7 +357,7 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
//glContext = new X11GLContext(mode, window);
|
//glContext = new X11GLContext(mode, window);
|
||||||
//glContext.PrepareContext(window);
|
//glContext.PrepareContext(window);
|
||||||
//window.VisualInfo = (glContext.Info as X11.WindowInfo).VisualInfo;
|
window.VisualInfo = ((glContext as IGLContextInternal).Info as X11.WindowInfo).VisualInfo;
|
||||||
//window.VisualInfo = Marshal.PtrToStructure(Glx.ChooseVisual(window.Display, window.Screen,
|
//window.VisualInfo = Marshal.PtrToStructure(Glx.ChooseVisual(window.Display, window.Screen,
|
||||||
|
|
||||||
// Create a window on this display using the visual above
|
// Create a window on this display using the visual above
|
||||||
|
|
Loading…
Reference in a new issue