Exemple #1
0
// SetHint (https://wiki.libsdl.org/SDL_SetHint)
func SetHint(name, value string) bool {
	_name := C.CString(name)
	_value := C.CString(value)
	defer C.free(unsafe.Pointer(_name))
	defer C.free(unsafe.Pointer(_value))
	return C.SDL_SetHint(_name, _value) > 0
}
Exemple #2
0
func SetHint(name, value string) bool {
	cname, cvalue := C.CString(name), C.CString(value)
	defer C.free(unsafe.Pointer(cname))
	defer C.free(unsafe.Pointer(cvalue))

	return C.SDL_SetHint(cname, cvalue) == C.SDL_TRUE
}
Exemple #3
0
func SetHint(name string, value string) bool {
	cname := C.CString(name)
	cvalue := C.CString(value)

	ret := C.SDL_SetHint(cname, cvalue)

	C.free(unsafe.Pointer(cname))
	C.free(unsafe.Pointer(cvalue))

	return ret == C.SDL_TRUE
}