OpenTK.DisplayDevice.GetDisplay C# (CSharp) Method

GetDisplay() public static method

Gets the DisplayDevice for the specified DisplayIndex.
public static GetDisplay ( DisplayIndex index ) : DisplayDevice
index DisplayIndex The that defines the desired display.
return DisplayDevice
        public static DisplayDevice GetDisplay(DisplayIndex index)
        {
            return implementation.GetDisplay(index);
        }

Usage Example

Ejemplo n.º 1
0
 public static DisplayDevice FromPoint(int x, int y)
 {
     for (DisplayIndex i = DisplayIndex.First; i < DisplayIndex.Sixth; i++)
     {
         DisplayDevice display = DisplayDevice.GetDisplay(i);
         if (display != null)
         {
             if (display.Bounds.Contains(x, y))
             {
                 return(display);
             }
         }
     }
     return(null);
 }