예제 #1
0
파일: gesture.go 프로젝트: willemvds/sdl
func SaveDollarTemplate(rw *RWops, id GestureID) error {
	if C.SDL_SaveDollarTemplate(id.c(), rw.c) != 0 {
		return getError()
	}

	return nil
}
예제 #2
0
func SaveDollarTemplate(gestureId GestureID, src *RWops) int {
	_gestureId := (C.SDL_GestureID)(gestureId)
	_src := (*C.SDL_RWops)(unsafe.Pointer(src))
	return (int)(C.SDL_SaveDollarTemplate(_gestureId, _src))
}
예제 #3
0
파일: gesture.go 프로젝트: emlai/go-sdl2
// SaveDollarTemplate (https://wiki.libsdl.org/SDL_SaveDollarTemplate)
func SaveDollarTemplate(g GestureID, src *RWops) int {
	return int(C.SDL_SaveDollarTemplate(g.c(), src.cptr()))
}