예제 #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)
 {
     GlfwDelegates.glfwGetGammaRamp(monitor, out ramp);
 }