public static GlfwVidMode[] GetVideoModes(GlfwMonitorPtr monitor) { int count; GlfwVidMode * array = GlfwDelegates.glfwGetVideoModes(monitor, out count); GlfwVidMode[] result = new GlfwVidMode[count]; for (int i = 0; i < count; ++i) { result[i] = array[i]; } return result; }
public static GlfwVidMode[] GetVideoModes(GlfwMonitorPtr monitor) { int count; GlfwVidMode *array = GlfwDelegates.glfwGetVideoModes(monitor, out count); GlfwVidMode[] result = new GlfwVidMode[count]; for (int i = 0; i < count; ++i) { result[i] = array[i]; } return(result); }
public static GlfwVidMode GetVideoMode(GlfwMonitorPtr monitor) { GlfwVidMode *vidMode = GlfwDelegates.glfwGetVideoMode(monitor); GlfwVidMode returnMode = new GlfwVidMode { RedBits = vidMode->RedBits, GreenBits = vidMode->GreenBits, BlueBits = vidMode->BlueBits, RefreshRate = vidMode->RefreshRate, Width = vidMode->Width, Height = vidMode->Height }; return(returnMode); }
internal static extern void glfwGetDesktopMode(out GlfwVidMode mode);
public static void GetDesktopMode(out GlfwVidMode mode) { GlfwDelegates.glfwGetDesktopMode(out mode); }
public static int GetVideoModes(GlfwVidMode[] list, int maxcount) { return GlfwDelegates.glfwGetVideoModes(list, maxcount); }
public static GlfwVidMode GetVideoMode(GlfwMonitorPtr monitor) { GlfwVidMode* vidMode = GlfwDelegates.glfwGetVideoMode(monitor); GlfwVidMode returnMode = new GlfwVidMode { RedBits = vidMode->RedBits, GreenBits = vidMode->GreenBits, BlueBits = vidMode->BlueBits, RefreshRate = vidMode->RefreshRate, Width = vidMode->Width, Height = vidMode->Height }; return returnMode; }