Example #1
0
 public static CozySprite Create(string path)
 {
     var sp = new CozySprite();
     if(!sp.InitWithFile(path))
     {
         return null;
     }
     return sp;
 }
Example #2
0
 public static CozySprite Create(string path, Rectangle rect)
 {
     var sp = new CozySprite();
     if (!sp.InitWithRect(path, rect))
     {
         return null;
     }
     return sp;
 }
Example #3
0
 public static CozySprite Create()
 {
     var sp = new CozySprite();
     if(!sp.Init())
     {
         return null;
     }
     return sp;
 }
Example #4
0
 public static CozySprite Create(CozyTexture texture)
 {
     var sp = new CozySprite();
     if(!sp.InitWithTexture(texture))
     {
         return null;
     }
     return sp;
 }