Beispiel #1
0
func GenVertexArray() VertexArray {
	var a C.GLuint
	log.Printf("Clear: %p", C.ptrgoglClear)
	log.Printf("GenVAO: %p", C.ptrgoglGenVertexArrays)
	log.Printf("Address of A: %p", &a)
	stackBuf := make([]byte, 0)
	_ = runtime.Stack(stackBuf, true)
	log.Printf("Stack-izzy: %v", stackBuf)
	C.goglGenVertexArrays(1, &a)
	log.Printf("Value of A: %p", a)
	log.Println("eh??")
	// C.goglGenVertexArrays((C.GLsizei)(n), (*C.GLuint)(arrays))
	return VertexArray(a)
}
Beispiel #2
0
func GenVertexArrays(arrays []VertexArray) {
	C.goglGenVertexArrays(C.GLsizei(len(arrays)), (*C.GLuint)(&arrays[0]))
}