Example #1
0
        public static void GetGammaRamp(GlfwMonitor monitor, out GlfwGammaRamp ramp)
        {
            GlfwGammaRampInternal rampI;

            GlfwCore.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];
            }
        }
Example #2
0
 public static void SetGammaRamp(GlfwMonitor monitor, ref GlfwGammaRamp ramp)
 {
     ramp.Length = (uint)ramp.Red.Length;
     GlfwCore.glfwSetGammaRamp(monitor, ref ramp);
 }
Example #3
0
 internal static extern void glfwSetGammaRamp(GlfwMonitor monitor, ref GlfwGammaRamp ramp);