public Image(Rectangle inRect, TexName Tex_Name, ImageTag inName) { Rect = inRect; _texture = TextureManager.getInstance().find(Tex_Name); type = _texture.Type; Name = inName; }
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; }
public Texture(TexName inTextName, Texture.type intype) { Name = inTextName; Type = intype; height = 0; width = 0; AssetName = ""; }
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); }
public void Create(Rectangle inRect, TexName inName, ImageTag inTag) { Image inImage = new Image(inRect, inName, inTag); this.Add(inImage); }
public void Create(string Asset, TexName Name, Texture.type type) { Texture inTexture = new Texture(Asset, Name, type); this.Add(inTexture); }
public void Create(TexName Name, Texture.type type) { Texture inTexture = new Texture(Name, type); this.Add(inTexture); }