Exemple #1
0
// // Fill slice with new buffers
func GenBuffers(buffers []Buffer) {
	C.goglGenBuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0]))
}
Exemple #2
0
// // Create single buffer object
func GenBuffer() Buffer {
	var b C.GLuint
	C.goglGenBuffers(1, &b)
	return Buffer(b)
}