code: public static int textureWrapRToGL(
      final JCGLTextureWrapR wrap)
    {
      switch (wrap) {
        case TEXTURE_WRAP_CLAMP_TO_EDGE:
          return GL12.GL_CLAMP_TO_EDGE;
        case TEXTURE_WRAP_REPEAT:
          return GL11.GL_REPEAT;
        case TEXTURE_WRAP_REPEAT_MIRRORED:
          return GL14.GL_MIRRORED_REPEAT;
      }
  
      throw new UnreachableCodeException();
    }
docs: Convert wrapping mode to GL constants.
  
  @param wrap The mode.
  
  @return The resulting GL constant.