Exemplo n.º 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
}
Exemplo n.º 2
0
func (hp HintPriority) c() C.SDL_HintPriority {
	return C.SDL_HintPriority(hp)
}