示例#1
0
文件: gl.go 项目: jackscan/go-gles2
func SampleCoverage(value float32, invert bool) {
	b := C.GLboolean(C.GL_FALSE)
	if invert {
		b = C.GLboolean(C.GL_TRUE)
	}

	C.glSampleCoverage(C.GLclampf(value), C.GLboolean(b))
}
示例#2
0
文件: gles2.go 项目: remogatto/egles
func SampleCoverage(
	value Clampf, invert bool) {
	C.glSampleCoverage(
		C.GLclampf(value),
		glBoolean(invert))
}