func ColorMask(red, green, blue, alpha bool) { defer func() { errstr := errDrain() log.Printf("gl.ColorMask(%v, %v, %v, %v) %v", red, green, blue, alpha, errstr) }() C.glColorMask(glBoolean(red), glBoolean(green), glBoolean(blue), glBoolean(alpha)) }
func ColorMask( red bool, green bool, blue bool, alpha bool) { C.glColorMask( glBoolean(red), glBoolean(green), glBoolean(blue), glBoolean(alpha)) }
// ColorMask calls glColorMask func ColorMask(r, g, b, a bool) { R, G, B, A := FALSE, FALSE, FALSE, FALSE if r { R = TRUE } if g { G = TRUE } if b { B = TRUE } if a { A = TRUE } C.glColorMask(C.GLboolean(R), C.GLboolean(G), C.GLboolean(B), C.GLboolean(A)) }
func ColorMask(red, green, blue, alpha bool) { r, g, b, a := C.GLboolean(C.GL_FALSE), C.GLboolean(C.GL_FALSE), C.GLboolean(C.GL_FALSE), C.GLboolean(C.GL_FALSE) if red { r = C.GLboolean(C.GL_TRUE) } if green { g = C.GLboolean(C.GL_TRUE) } if blue { b = C.GLboolean(C.GL_TRUE) } if alpha { a = C.GLboolean(C.GL_TRUE) } C.glColorMask(r, g, b, a) }