示例#1
0
文件: core.go 项目: pigulon/go-openal
func (self *Context) DestroyContext() {
	C.alcDestroyContext(self.handle)
	self.handle = nil
	// XXX: there used to be a alcDestroyContext() that
	// returned something, but our alc.h doesn't list
	// that one... Hmmm...
}
示例#2
0
文件: alc.go 项目: nzlov/goal
func (context *Context) Destroy() {
	C.alcDestroyContext((*C.ALCcontext)(context))
}
示例#3
0
// Renamed, was DestroyContext.
func (self *Context) Destroy() {
	C.alcDestroyContext(self.handle)
	self.handle = nil
}
示例#4
0
func alcDestroyContext(c unsafe.Pointer) {
	C.alcDestroyContext((*C.ALCcontext)(c))
}
示例#5
0
文件: alc.go 项目: Jragonmiris/go-al
func (con Context) Destroy() error {
	C.alcDestroyContext(con.context)
	return GetError()
}