mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 03:15:40 +00:00
Clarified what the DisplayDevice constructor does.
This commit is contained in:
parent
60138b2ff4
commit
033a394c9d
|
@ -33,6 +33,8 @@ namespace OpenTK.Platform.Windows
|
||||||
// we only allow settings to be set through its constructor.
|
// we only allow settings to be set through its constructor.
|
||||||
// Thus, we save all necessary parameters in temporary variables
|
// Thus, we save all necessary parameters in temporary variables
|
||||||
// and construct the device when every needed detail is available.
|
// and construct the device when every needed detail is available.
|
||||||
|
// The main DisplayDevice constructor adds the newly constructed device
|
||||||
|
// to the list of available devices.
|
||||||
OpenTK.Graphics.DisplayDevice opentk_dev;
|
OpenTK.Graphics.DisplayDevice opentk_dev;
|
||||||
DisplayResolution opentk_dev_current_res = null;
|
DisplayResolution opentk_dev_current_res = null;
|
||||||
List<DisplayResolution> opentk_dev_available_res = new List<DisplayResolution>();
|
List<DisplayResolution> opentk_dev_available_res = new List<DisplayResolution>();
|
||||||
|
@ -71,6 +73,8 @@ namespace OpenTK.Platform.Windows
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct the OpenTK DisplayDevice through the accumulated parameters.
|
// Construct the OpenTK DisplayDevice through the accumulated parameters.
|
||||||
|
// The constructor will automatically add the DisplayDevice to the list
|
||||||
|
// of available devices.
|
||||||
opentk_dev = new OpenTK.Graphics.DisplayDevice(opentk_dev_current_res, opentk_dev_primary,
|
opentk_dev = new OpenTK.Graphics.DisplayDevice(opentk_dev_current_res, opentk_dev_primary,
|
||||||
opentk_dev_available_res);
|
opentk_dev_available_res);
|
||||||
|
|
||||||
|
@ -119,15 +123,6 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region public DisplayDevice[] AvailableDevices
|
|
||||||
|
|
||||||
public OpenTK.Graphics.DisplayDevice[] AvailableDevices
|
|
||||||
{
|
|
||||||
get { return null; }
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue