Exemple #1
0
        public static GLFWgammaramp getGammaRamp(GLFWmonitor monitor)
        {
            IntPtr        a    = Glfwint.getGammaRamp(monitor.handle);
            GLFWgammaramp ramp = (GLFWgammaramp)Marshal.PtrToStructure(a, typeof(GLFWgammaramp));

            return(ramp);
        }
Exemple #2
0
        public static void setGammaRamp(GLFWmonitor monitor, GLFWgammaramp ramp)
        {
            IntPtr ptr = new IntPtr();

            Marshal.StructureToPtr(ramp, ptr, false);
            Glfwint.setGammaRamp(monitor.handle, ptr);
        }