예제 #1
0
파일: gldebug.go 프로젝트: Miaque/mojo
func GenFramebuffer() (r0 Framebuffer) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.GenFramebuffer() %v%v", r0, errstr)
	}()
	var b Framebuffer
	C.glGenFramebuffers(1, (*C.GLuint)(&b.Value))
	return b
}
예제 #2
0
파일: gl_opengles.go 프로젝트: tanema/amore
func CreateFramebuffer() Framebuffer {
	var b Framebuffer
	C.glGenFramebuffers(1, (*C.GLuint)(&b.Value))
	return b
}
예제 #3
0
파일: gles2.go 프로젝트: remogatto/egles
func GenFramebuffers(
	n Sizei, framebuffers *uint32) {
	C.glGenFramebuffers(
		C.GLsizei(n),
		(*C.GLuint)(framebuffers))
}
예제 #4
0
func CreateFramebuffer() Framebuffer {
	buffer := Framebuffer(0)
	C.glGenFramebuffers(C.GLsizei(1), (*C.GLuint)(&buffer))
	return buffer
}
예제 #5
0
func GenFramebuffers(buffers []Framebuffer) {
	C.glGenFramebuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0]))
}
예제 #6
0
// void glGenFramebuffers(GLsizei n, GLuint* ids);
func GenFramebuffer() Framebuffer {
	var b C.GLuint
	C.glGenFramebuffers(1, &b)
	return Framebuffer(b)
}