示例#1
0
 /**
  * @deprecated Use {@code setCullFace(GVRCullFaceEnum cullFace)} instead.
  * @see #setCullFace(int cullFace) Set the {@code GL_CULL_FACE} option
  * @param cullTest {@code true} if {@code GL_CULL_FACE} should be enabled, {@code false} if not.
  * @param pass
  */
 public void setCullTest(boolean cullTest) {
   if (cullTest) {
     setCullFace(GVRCullFaceEnum.Back);
   } else {
     setCullFace(GVRCullFaceEnum.None);
   }
 }
示例#2
0
 /**
  * Set the face to be culled
  *
  * @param cullFace {@code GVRCullFaceEnum.Back} Tells Graphics API to discard back faces, {@code
  *     GVRCullFaceEnum.Front} Tells Graphics API to discard front faces, {@code
  *     GVRCullFaceEnum.None} Tells Graphics API to not discard any face
  */
 public void setCullFace(GVRCullFaceEnum cullFace) {
   setCullFace(cullFace, 0);
 }