예제 #1
0
 public rcode Load(string sFile, ResourcePack pack = null, bool filter = false, bool clamp = true)
 {
     pSprite = new Sprite();
     if (pSprite.LoadFromFile(sFile, pack) == rcode.OK)
     {
         pDecal = new Decal(pSprite, filter, clamp);
         return(rcode.OK);
     }
     else
     {
         pSprite = null;
         return(rcode.NO_FILE);
     }
 }
예제 #2
0
 public void Create(int width, int height, bool filter = false, bool clamp = true)
 {
     pSprite = new Sprite(width, height);
     pDecal  = new Decal(pSprite, filter, clamp);
 }