Пример #1
0
func (window *Window) GetBrightness() float32 {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (float32)(C.SDL_GetWindowBrightness(_window))
}
Пример #2
0
// Window (https://wiki.libsdl.org/SDL_GetWindowBrightness)
func (window *Window) GetBrightness() float32 {
	return float32(C.SDL_GetWindowBrightness(window.cptr()))
}
Пример #3
0
func (win *Window) GetBrightness() float32 {
	return float32(C.SDL_GetWindowBrightness(win.c))
}
Пример #4
0
// Brightness returns the brightness (gamma correction) for the window.
func (win *Window) Brightness() (brightness float64) {
	return float64(C.SDL_GetWindowBrightness(win.cWin))
}