コード例 #1
0
ファイル: CozySprite.cs プロジェクト: xxy1991/cozy
 public static CozySprite Create(string path, Rectangle rect)
 {
     var sp = new CozySprite();
     if (!sp.InitWithRect(path, rect))
     {
         return null;
     }
     return sp;
 }
コード例 #2
0
ファイル: CozySprite.cs プロジェクト: xxy1991/cozy
 public static CozySprite Create(string path)
 {
     var sp = new CozySprite();
     if(!sp.InitWithFile(path))
     {
         return null;
     }
     return sp;
 }
コード例 #3
0
ファイル: CozySprite.cs プロジェクト: xxy1991/cozy
 public static CozySprite Create()
 {
     var sp = new CozySprite();
     if(!sp.Init())
     {
         return null;
     }
     return sp;
 }
コード例 #4
0
        public static CozySprite Create(CozyTexture texture)
        {
            var sp = new CozySprite();

            if (!sp.InitWithTexture(texture))
            {
                return(null);
            }
            return(sp);
        }
コード例 #5
0
        public static CozySprite Create(string path, Rectangle rect)
        {
            var sp = new CozySprite();

            if (!sp.InitWithRect(path, rect))
            {
                return(null);
            }
            return(sp);
        }
コード例 #6
0
        public static CozySprite Create(string path)
        {
            var sp = new CozySprite();

            if (!sp.InitWithFile(path))
            {
                return(null);
            }
            return(sp);
        }
コード例 #7
0
        public static CozySprite Create()
        {
            var sp = new CozySprite();

            if (!sp.Init())
            {
                return(null);
            }
            return(sp);
        }
コード例 #8
0
ファイル: CozySprite.cs プロジェクト: xxy1991/cozy
 public static CozySprite Create(CozyTexture texture)
 {
     var sp = new CozySprite();
     if(!sp.InitWithTexture(texture))
     {
         return null;
     }
     return sp;
 }