示例#1
0
// Fill slice with new renderbuffers
func GenSamplers(samplers []SamplerObject) {
	if len(samplers) > 0 {
		C.glGenSamplers(C.GLsizei(len(samplers)), (*C.GLuint)(&samplers[0]))
	}
}
示例#2
0
// void glGenSamplers(GLsizei n, GLuint *samplerObject)
func GenSampler() SamplerObject {
	var so C.GLuint
	C.glGenSamplers(1, &so)
	return SamplerObject(so)
}