func DisplayModes() []DisplayMode { var n int n = int(C.al_get_num_display_modes()) modes := make([]DisplayMode, n) for i := 0; i < n; i++ { var mode C.ALLEGRO_DISPLAY_MODE C.al_get_display_mode(C.int(i), &mode) modes[i] = DisplayMode{ int(mode.width), int(mode.height), int(mode.format), int(mode.refresh_rate)} } return modes }
// Returns the number of display modes available to Allegro func NumDisplayModes() int { return int(C.al_get_num_display_modes()) }
func GetNumDisplayModes() int32 { return int32(C.al_get_num_display_modes()) }