Пример #1
0
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
}
Пример #2
0
func (hp HintPriority) c() C.SDL_HintPriority {
	return C.SDL_HintPriority(hp)
}