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