func SetHintWithPriority(name string, value string, priority int) bool { cname := C.CString(name) cvalue := C.CString(value) ret := C.SDL_SetHintWithPriority(cname, cvalue, C.SDL_HintPriority(priority)) C.free(unsafe.Pointer(cname)) C.free(unsafe.Pointer(cvalue)) return ret == C.SDL_TRUE }
func (hp HintPriority) c() C.SDL_HintPriority { return C.SDL_HintPriority(hp) }