erm/vendor/github.com/go-gl/glfw/v3.3/glfw/monitor.c
2021-07-30 23:29:20 +01:00

20 lines
488 B
C

#include "_cgo_export.h"
GLFWmonitor *GetMonitorAtIndex(GLFWmonitor **monitors, int index) {
return monitors[index];
}
GLFWvidmode GetVidmodeAtIndex(GLFWvidmode *vidmodes, int index) {
return vidmodes[index];
}
void glfwSetMonitorCallbackCB() {
glfwSetMonitorCallback((GLFWmonitorfun)goMonitorCB);
}
unsigned int GetGammaAtIndex(unsigned short *color, int i) { return color[i]; }
void SetGammaAtIndex(unsigned short *color, int i, unsigned short value) {
color[i] = value;
}