示例#1
0
文件: video.go 项目: flazz/go-sdl2
// GetNumDisplayModes (https://wiki.libsdl.org/SDL_GetNumDisplayModes)
func GetNumDisplayModes(displayIndex int) (int, error) {
	n := int(C.SDL_GetNumDisplayModes(C.int(displayIndex)))
	if n < 0 {
		return n, GetError()
	}
	return n, nil
}
示例#2
0
文件: video.go 项目: DeedleFake/sdl
func GetNumDisplayModes(i int) (int, error) {
	nm := C.SDL_GetNumDisplayModes(C.int(i))
	if nm < 0 {
		return 0, getError()
	}

	return int(nm), nil
}
示例#3
0
文件: video.go 项目: krig/Go-SDL2
func NumDisplayModes(index int) int {
	return int(C.SDL_GetNumDisplayModes(C.int(index)))
}
示例#4
0
func GetNumDisplayModes(displayIndex int) int {
	_displayIndex := (C.int)(displayIndex)
	return (int)(C.SDL_GetNumDisplayModes(_displayIndex))
}
示例#5
0
func NumDisplayModes(index int) int {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

	return int(C.SDL_GetNumDisplayModes(C.int(index)))
}
示例#6
0
文件: video.go 项目: JalfResi/go-sdl2
func GetNumDisplayModes(displayIndex int) int {
	return int(C.SDL_GetNumDisplayModes(C.int(displayIndex)))
}