Exemple #1
0
		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;
		}
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 internal static extern void glfwGetDesktopMode(out GlfwVidMode mode);
Exemple #5
0
 public static void GetDesktopMode(out GlfwVidMode mode)
 {
     GlfwDelegates.glfwGetDesktopMode(out mode);
 }
Exemple #6
0
		public static void GetDesktopMode(out GlfwVidMode mode) {
			GlfwDelegates.glfwGetDesktopMode(out mode);
		}
Exemple #7
0
		public static int GetVideoModes(GlfwVidMode[] list, int maxcount) {
			return GlfwDelegates.glfwGetVideoModes(list, maxcount);
		}
Exemple #8
0
		internal static extern void glfwGetDesktopMode(out GlfwVidMode mode);
Exemple #9
0
		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;
		}