This method returns the number of display modes supported by a driver. A simple implementation is to return 1.
virtual int NumModes();
Returns the number of display modes supported by a driver.