Exemplo n.º 1
0
Arquivo: alc.go Projeto: nzlov/goal
func (device *Device) GetProcAddress(fname string) uintptr {
	s := alcString(fname)
	p := uintptr(C.alcGetProcAddress((*C.ALCdevice)(device), s))
	freeString(s)
	return p
}
Exemplo n.º 2
0
func (dev Device) procAddress(funcName string) (unsafe.Pointer, error) {
	return unsafe.Pointer(C.alcGetProcAddress(dev.device, (*C.ALCchar)(C.CString(funcName)))), GetError()
}