示例#1
0
		public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp) {
			GlfwGammaRampInternal rampI;
			GlfwDelegates.glfwGetGammaRamp(monitor, out rampI);
			uint length = rampI.Length;
			ramp = new GlfwGammaRamp();
			ramp.Red = new uint[length];
			ramp.Green = new uint[length];
			ramp.Blue = new uint[length];
			for (int i = 0; i < ramp.Red.Length; ++i) {
				ramp.Red[i] = rampI.Red[i];
			}
			for (int i = 0; i < ramp.Green.Length; ++i) {
				ramp.Green[i] = rampI.Green[i];
			}
			for (int i = 0; i < ramp.Blue.Length; ++i) {
				ramp.Blue[i] = rampI.Blue[i];
			}
		}
示例#2
0
        public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp)
        {
            GlfwGammaRampInternal rampI;

            GlfwDelegates.glfwGetGammaRamp(monitor, out rampI);
            uint length = rampI.Length;

            ramp       = new GlfwGammaRamp();
            ramp.Red   = new uint[length];
            ramp.Green = new uint[length];
            ramp.Blue  = new uint[length];
            for (int i = 0; i < ramp.Red.Length; ++i)
            {
                ramp.Red[i] = rampI.Red[i];
            }
            for (int i = 0; i < ramp.Green.Length; ++i)
            {
                ramp.Green[i] = rampI.Green[i];
            }
            for (int i = 0; i < ramp.Blue.Length; ++i)
            {
                ramp.Blue[i] = rampI.Blue[i];
            }
        }
示例#3
0
 public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp)
 {
     ramp.Length = (uint)ramp.Red.Length;
     GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
 }
示例#4
0
 internal static extern void glfwSetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp);
示例#5
0
 internal static extern void glfwSetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp);
示例#6
0
		internal static extern void glfwGetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp);
示例#7
0
		public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp) {
			ramp.Length = (uint)ramp.Red.Length;
			GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
		}
示例#8
0
 internal static extern void glfwGetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp);
示例#9
0
		public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp) {
			GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
		}
示例#10
0
		public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp) {
			GlfwDelegates.glfwGetGammaRamp(monitor, out ramp);
		}
示例#11
0
 public static void SetGammaRamp(GlfwMonitorPtr monitor, ref GlfwGammaRamp ramp)
 {
     GlfwDelegates.glfwSetGammaRamp(monitor, ref ramp);
 }
示例#12
0
 public static void GetGammaRamp(GlfwMonitorPtr monitor, out GlfwGammaRamp ramp)
 {
     GlfwDelegates.glfwGetGammaRamp(monitor, out ramp);
 }