monitor.c (488B)
1 #include "_cgo_export.h" 2 3 GLFWmonitor *GetMonitorAtIndex(GLFWmonitor **monitors, int index) { 4 return monitors[index]; 5 } 6 7 GLFWvidmode GetVidmodeAtIndex(GLFWvidmode *vidmodes, int index) { 8 return vidmodes[index]; 9 } 10 11 void glfwSetMonitorCallbackCB() { 12 glfwSetMonitorCallback((GLFWmonitorfun)goMonitorCB); 13 } 14 15 unsigned int GetGammaAtIndex(unsigned short *color, int i) { return color[i]; } 16 17 void SetGammaAtIndex(unsigned short *color, int i, unsigned short value) { 18 color[i] = value; 19 }