示例#1
0
文件: sdl.go 项目: kearsley/Go-SDL
// Toggles fullscreen mode
func WM_ToggleFullScreen(surface *Surface) int {
	GlobalMutex.Lock()
	status := int(C.SDL_WM_ToggleFullScreen(surface.cSurface))
	GlobalMutex.Unlock()
	return status
}
示例#2
0
文件: sdl.go 项目: gnanderson/Go-SDL
// Toggles fullscreen mode
func WM_ToggleFullScreen(surface *Surface) int {
	return int(C.SDL_WM_ToggleFullScreen((*C.SDL_Surface)(cast(surface))))
}