func (win *Window) SetBrightness(b float32) error { if C.SDL_SetWindowBrightness(win.c, C.float(b)) != 0 { return getError() } return nil }
func (window *Window) SetBrightness(brightness float32) int { _window := (*C.SDL_Window)(unsafe.Pointer(window)) _brightness := (C.float)(brightness) return (int)(C.SDL_SetWindowBrightness(_window, _brightness)) }
// SetBrightness sets the brightness (gamma correction) for the window. func (win *Window) SetBrightness(brightness float64) (err error) { if C.SDL_SetWindowBrightness(win.cWin, C.float(brightness)) != 0 { return getError() } return nil }
// Window (https://wiki.libsdl.org/SDL_SetWindowBrightness) func (window *Window) SetBrightness(brightness float32) error { if C.SDL_SetWindowBrightness(window.cptr(), C.float(brightness)) != 0 { return GetError() } return nil }
func (window *Window) SetBrightness(brightness float32) int { return int(C.SDL_SetWindowBrightness(window.cptr(), C.float(brightness))) }