コード例 #1
0
        public void FetchTexture(string url, string textureName, TextureFetchDone doneHandler, int width, int height, bool keepAspect, ColorEx fillColor, string authUser, string authPW, string authDomain)
        {
            Request request = new Request(url, textureName, doneHandler, width, height, keepAspect, fillColor, authUser, authPW, authDomain);

            queue.Enqueue(request);
            Process();
        }
コード例 #2
0
        public Request(string url, string textureName, TextureFetchDone doneHandler, int destWidth, int destHeight, bool keepAspect, ColorEx fillColor, string authUser, string authPW, string authDomain)
        {
            this.url = url;
            if (!url.StartsWith("http:"))
            {
                log.ErrorFormat("TextureFetch: only http urls supported: {0}", url);
                throw new Exception("TextureFetch: only http urls supported: " + url);
            }
            this.textureName = textureName;
            this.doneHandler = doneHandler;
            this.destWidth = destWidth;
            this.destHeight = destHeight;
            this.keepAspect = keepAspect;
            this.fillColor = fillColor;

            this.authUser = authUser;
            this.authPW = authPW;
            this.authDomain = authDomain;
        }
コード例 #3
0
        public Request(string url, string textureName, TextureFetchDone doneHandler, int destWidth, int destHeight, bool keepAspect, ColorEx fillColor, string authUser, string authPW, string authDomain)
        {
            this.url = url;
            if (!url.StartsWith("http:"))
            {
                log.ErrorFormat("TextureFetch: only http urls supported: {0}", url);
                throw new Exception("TextureFetch: only http urls supported: " + url);
            }
            this.textureName = textureName;
            this.doneHandler = doneHandler;
            this.destWidth   = destWidth;
            this.destHeight  = destHeight;
            this.keepAspect  = keepAspect;
            this.fillColor   = fillColor;

            this.authUser   = authUser;
            this.authPW     = authPW;
            this.authDomain = authDomain;
        }
コード例 #4
0
 public void FetchTexture(string url, string textureName, TextureFetchDone doneHandler)
 {
     FetchTexture(url, textureName, doneHandler, 0, 0, false, ColorEx.Black);
 }
コード例 #5
0
 public void FetchTexture(string url, string textureName, TextureFetchDone doneHandler, int width, int height, bool keepAspect, ColorEx fillColor)
 {
     FetchTexture(url, textureName, doneHandler, width, height, keepAspect, fillColor);
 }
コード例 #6
0
 public void FetchTexture(string url, string textureName, TextureFetchDone doneHandler, int width, int height, bool keepAspect, ColorEx fillColor, string authUser, string authPW, string authDomain)
 {
     Request request = new Request(url, textureName, doneHandler, width, height, keepAspect, fillColor, authUser, authPW, authDomain);
     queue.Enqueue(request);
     Process();
 }
コード例 #7
0
 public void FetchTexture(string url, string textureName, TextureFetchDone doneHandler)
 {
     FetchTexture(url, textureName, doneHandler, 0, 0, false, ColorEx.Black);
 }
コード例 #8
0
 public void FetchTexture(string url, string textureName, TextureFetchDone doneHandler, int width, int height, bool keepAspect, ColorEx fillColor)
 {
     FetchTexture(url, textureName, doneHandler, width, height, keepAspect, fillColor);
 }