コード例 #1
0
 public Image(Rectangle inRect, TexName Tex_Name, ImageTag inName)
 {
     Rect     = inRect;
     _texture = TextureManager.getInstance().find(Tex_Name);
     type     = _texture.Type;
     Name     = inName;
 }
コード例 #2
0
        public Texture(string inName, TexName inTextName, Texture.type intype, int inheight = 1, int inwidth = 1)
        {
            AssetName = inName;
            Name      = inTextName;

            Type = intype;

            height = inheight;
            width  = inwidth;
        }
コード例 #3
0
        public Texture(TexName inTextName, Texture.type intype)
        {
            Name = inTextName;
            Type = intype;

            height = 0;
            width  = 0;

            AssetName = "";
        }
コード例 #4
0
        public Texture find(TexName inFinder)
        {
            int index = 0;

            Texture Obj = (Texture)List.getDatabyIndex(index);

            while (Obj != null)
            {
                if (Obj.Name == inFinder)
                {
                    return(Obj);
                }

                index++;
                Obj = (Texture)List.getDatabyIndex(index);
            }

            return(null);
        }
コード例 #5
0
        public void Create(Rectangle inRect, TexName inName, ImageTag inTag)
        {
            Image inImage = new Image(inRect, inName, inTag);

            this.Add(inImage);
        }
コード例 #6
0
        public void Create(string Asset, TexName Name, Texture.type type)
        {
            Texture inTexture = new Texture(Asset, Name, type);

            this.Add(inTexture);
        }
コード例 #7
0
        public void Create(TexName Name, Texture.type type)
        {
            Texture inTexture = new Texture(Name, type);

            this.Add(inTexture);
        }