Project

General

Profile

« Previous | Next » 

Revision 97460908

Added by Leszek Koltunski about 2 years ago

new API to enable/disable face culling

View differences:

src/main/java/org/distorted/library/main/DistortedLibrary.java
1052 1052
      }
1053 1053
    }
1054 1054

  
1055
///////////////////////////////////////////////////////////////////////////////////////////////////
1056
/**
1057
 * Switch face culling on/off
1058
 */
1059
  public static void setCull(boolean on)
1060
    {
1061
    if( on )
1062
      {
1063
      GLES30.glEnable(GLES30.GL_CULL_FACE);
1064
      GLES30.glCullFace(GLES30.GL_FRONT);
1065
      }
1066
    else
1067
      {
1068
      GLES30.glDisable(GLES30.GL_CULL_FACE);
1069
      }
1070
    }
1071

  
1055 1072
///////////////////////////////////////////////////////////////////////////////////////////////////
1056 1073
/**
1057 1074
 * Call this so that the Library can initialize its internal data structures.

Also available in: Unified diff