setCullFace method
Implementation
void setCullFace(int cullFace) {
if (cullFace != CullFaceNone) {
enable(WebGL.CULL_FACE);
if (cullFace != currentCullFace) {
if (cullFace == CullFaceBack) {
gl.cullFace(WebGL.BACK);
} else if (cullFace == CullFaceFront) {
gl.cullFace(WebGL.FRONT);
} else {
gl.cullFace(WebGL.FRONT_AND_BACK);
}
}
} else {
disable(WebGL.CULL_FACE);
}
currentCullFace = cullFace;
}