code: public static JCGLTextureWrapT textureWrapTFromGL(
      final int wrap)
    {
      switch (wrap) {
        case GL12.GL_CLAMP_TO_EDGE:
          return JCGLTextureWrapT.TEXTURE_WRAP_CLAMP_TO_EDGE;
        case GL11.GL_REPEAT:
          return JCGLTextureWrapT.TEXTURE_WRAP_REPEAT;
        case GL14.GL_MIRRORED_REPEAT:
          return JCGLTextureWrapT.TEXTURE_WRAP_REPEAT_MIRRORED;
        default:
          throw new UnreachableCodeException();
      }
    }
docs: Convert wrapping modes from GL constants.
  
  @param wrap The GL constant.
  
  @return The value.