Example #1
0
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...
}
Example #2
0
File: alc.go Project: nzlov/goal
func (context *Context) Destroy() {
	C.alcDestroyContext((*C.ALCcontext)(context))
}
Example #3
0
// Renamed, was DestroyContext.
func (self *Context) Destroy() {
	C.alcDestroyContext(self.handle)
	self.handle = nil
}
Example #4
0
func alcDestroyContext(c unsafe.Pointer) {
	C.alcDestroyContext((*C.ALCcontext)(c))
}
Example #5
0
func (con Context) Destroy() error {
	C.alcDestroyContext(con.context)
	return GetError()
}