
AvailableDisplays marked as Obsolete - no equivalent available in DisplayDevice
Posted Tuesday, 6 December, 2011 - 15:14 by thorrablot| Project: | The Open Toolkit library |
| Version: | 1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | open |
Description
This code has been tagged as Obsolete and generates a warning for code that produces no warning using OpenTK 1.0:
// Summary: // Gets the list of available OpenTK.DisplayDevice objects. This function allocates // memory. [Obsolete("Use GetDisplay(DisplayIndex) instead.")] public static IList<DisplayDevice> AvailableDisplays { get; }
Without this method, there is no way to enumerate over the number of displays present on a system (or get a DisplayDevice.Count). Suggest retaining, or adding a property or method that provide the number of displays.

