Esempio n. 1
0
 /// <summary>
 /// Constructs a new IWindowInfo instance for the X11 platform.
 /// </summary>
 /// <param name="display">The display connection.</param>
 /// <param name="screen">The screen.</param>
 /// <param name="windowHandle">The handle for the window.</param>
 /// <param name="rootWindow">The root window for screen.</param>
 /// <param name="visualInfo">A pointer to a XVisualInfo structure obtained through XGetVisualInfo.</param>
 /// <returns>A new IWindowInfo instance.</returns>
 public static IWindowInfo CreateX11WindowInfo(IntPtr display, int screen, IntPtr windowHandle, IntPtr rootWindow, IntPtr visualInfo)
 {
     Platform.X11.X11WindowInfo window = new OpenTK.Platform.X11.X11WindowInfo();
     window.Display      = display;
     window.Screen       = screen;
     window.WindowHandle = windowHandle;
     window.RootWindow   = rootWindow;
     window.VisualInfo   = (X11.XVisualInfo)Marshal.PtrToStructure(visualInfo, typeof(X11.XVisualInfo));
     return(window);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs a new IWindowInfo instance for the X11 platform.
 /// </summary>
 /// <param name="display">The display connection.</param>
 /// <param name="screen">The screen.</param>
 /// <param name="windowHandle">The handle for the window.</param>
 /// <param name="rootWindow">The root window for screen.</param>
 /// <param name="visualInfo">A pointer to a XVisualInfo structure obtained through XGetVisualInfo.</param>
 /// <returns>A new IWindowInfo instance.</returns>
 public static IWindowInfo CreateX11WindowInfo(IntPtr display, int screen, IntPtr windowHandle, IntPtr rootWindow, IntPtr visualInfo)
 {
     Platform.X11.X11WindowInfo window = new OpenTK.Platform.X11.X11WindowInfo();
     window.Display    = display;
     window.Screen     = screen;
     window.Handle     = windowHandle;
     window.RootWindow = rootWindow;
     window.Visual     = visualInfo;
     return(window);
 }
Esempio n. 3
0
 /// <summary>
 /// Constructs a new IWindowInfo instance for the X11 platform.
 /// </summary>
 /// <param name="display">The display connection.</param>
 /// <param name="screen">The screen.</param>
 /// <param name="windowHandle">The handle for the window.</param>
 /// <param name="rootWindow">The root window for screen.</param>
 /// <param name="visualInfo">A pointer to a XVisualInfo structure obtained through XGetVisualInfo.</param>
 /// <returns>A new IWindowInfo instance.</returns>
 public static IWindowInfo CreateX11WindowInfo(IntPtr display, int screen, IntPtr windowHandle, IntPtr rootWindow, IntPtr visualInfo)
 {
     Platform.X11.X11WindowInfo window = new OpenTK.Platform.X11.X11WindowInfo();
     window.Display = display;
     window.Screen = screen;
     window.WindowHandle = windowHandle;
     window.RootWindow = rootWindow;
     window.VisualInfo = (X11.XVisualInfo)Marshal.PtrToStructure(visualInfo, typeof(X11.XVisualInfo));
     return window;
 }
Esempio n. 4
0
 /// <summary>
 /// Constructs a new IWindowInfo instance for the X11 platform.
 /// </summary>
 /// <param name="display">The display connection.</param>
 /// <param name="screen">The screen.</param>
 /// <param name="windowHandle">The handle for the window.</param>
 /// <param name="rootWindow">The root window for screen.</param>
 /// <param name="visualInfo">A pointer to a XVisualInfo structure obtained through XGetVisualInfo.</param>
 /// <returns>A new IWindowInfo instance.</returns>
 public static IWindowInfo CreateX11WindowInfo(IntPtr display, int screen, IntPtr windowHandle, IntPtr rootWindow, IntPtr visualInfo)
 {
     Platform.X11.X11WindowInfo window = new OpenTK.Platform.X11.X11WindowInfo();
     window.Display = display;
     window.Screen = screen;
     window.Handle = windowHandle;
     window.RootWindow = rootWindow;
     window.Visual = visualInfo;
     return window;
 }