public static Vidmode[] GetVideoModes(Monitor monitor, out int count) { int lenght; Vidmode *monitors = Imports.glfwGetVideoModes(monitor, out lenght); Vidmode[] result = new Vidmode[lenght]; for (int i = 0; i < lenght; i++) { result[i] = monitors[i]; } count = lenght; return(result); }
public static Vidmode GetVideoMode(Monitor monitor) { Vidmode *vidMode = Imports.glfwGetVideoMode(monitor); Vidmode returnMode = new Vidmode { RedBits = vidMode->RedBits, GreenBits = vidMode->GreenBits, BlueBits = vidMode->BlueBits, RefreshRate = vidMode->RefreshRate, Width = vidMode->Width, Height = vidMode->Height }; return(returnMode); }