示例#1
0
        public static GlfwVidMode[] GetVideoModes(GlfwMonitor monitor)
        {
            int          count;
            GlfwVidMode *array = GlfwCore.glfwGetVideoModes(monitor, out count);

            GlfwVidMode[] result = new GlfwVidMode[count];
            for (int i = 0; i < count; ++i)
            {
                result[i] = array[i];
            }
            return(result);
        }
示例#2
0
        public static GlfwVidMode GetVideoMode(GlfwMonitor monitor)
        {
            GlfwVidMode *vidMode    = GlfwCore.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);
        }