Example #1
0
func (window *Window) GetBrightness() float32 {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (float32)(C.SDL_GetWindowBrightness(_window))
}
Example #2
0
// Window (https://wiki.libsdl.org/SDL_GetWindowBrightness)
func (window *Window) GetBrightness() float32 {
	return float32(C.SDL_GetWindowBrightness(window.cptr()))
}
Example #3
0
func (win *Window) GetBrightness() float32 {
	return float32(C.SDL_GetWindowBrightness(win.c))
}
Example #4
0
File: video.go Project: salihdb/sdl
// Brightness returns the brightness (gamma correction) for the window.
func (win *Window) Brightness() (brightness float64) {
	return float64(C.SDL_GetWindowBrightness(win.cWin))
}