public static GLFWgammaramp getGammaRamp(GLFWmonitor monitor) { IntPtr a = Glfwint.getGammaRamp(monitor.handle); GLFWgammaramp ramp = (GLFWgammaramp)Marshal.PtrToStructure(a, typeof(GLFWgammaramp)); return(ramp); }
public static void setGammaRamp(GLFWmonitor monitor, GLFWgammaramp ramp) { IntPtr ptr = new IntPtr(); Marshal.StructureToPtr(ramp, ptr, false); Glfwint.setGammaRamp(monitor.handle, ptr); }