示例#1
0
文件: core.go 项目: pigulon/go-openal
func DeleteBuffers(buffers []*Buffer) {
	n := len(buffers)
	bufferIds := make([]C.ALuint, n)

	for i, v := range buffers {
		forgetBuffer(v)
		bufferIds[i] = v.handle
	}

	C.walDeleteBuffers(C.ALsizei(n), unsafe.Pointer(&bufferIds[0]))
	return
}
示例#2
0
文件: buffer.go 项目: 9uuso/go-openal
// DeleteBuffers() deletes the given buffers.
func DeleteBuffers(buffers []Buffer) {
	n := len(buffers)
	C.walDeleteBuffers(C.ALsizei(n), unsafe.Pointer(&buffers[0]))
}
示例#3
0
// Delete() deletes the given buffers.
func (self Buffers) Delete() {
	n := len(self)
	C.walDeleteBuffers(C.ALsizei(n), unsafe.Pointer(&self[0]))
}