示例#1
0
文件: gesture.go 项目: willemvds/sdl
func LoadDollarTemplates(rw *RWops, id TouchID) error {
	if C.SDL_LoadDollarTemplates(id.c(), rw.c) != 0 {
		return getError()
	}

	return nil
}
示例#2
0
func LoadDollarTemplates(touchId TouchID, src *RWops) int {
	_touchId := (C.SDL_TouchID)(touchId)
	_src := (*C.SDL_RWops)(unsafe.Pointer(src))
	return (int)(C.SDL_LoadDollarTemplates(_touchId, _src))
}
示例#3
0
文件: gesture.go 项目: emlai/go-sdl2
// LoadDollarTemplates (https://wiki.libsdl.org/SDL_LoadDollarTemplates)
func LoadDollarTemplates(t TouchID, src *RWops) int {
	return int(C.SDL_LoadDollarTemplates(t.c(), src.cptr()))
}