Beispiel #1
0
// Fill slice with new transform feedbacks
func GenTransformFeedbacks(feedbacks []TransformFeedback) {
	if len(feedbacks) > 0 {
		C.glGenTransformFeedbacks(C.GLsizei(len(feedbacks)), (*C.GLuint)(&feedbacks[0]))
	}
}
Beispiel #2
0
// Create a single transform feedback object
func GenTransformFeedback() TransformFeedback {
	var t C.GLuint
	C.glGenTransformFeedbacks(1, &t)
	return TransformFeedback(t)
}