示例#1
0
 public Texture(TexEnum name, string texFile)
     : base()
 {
     this.name = name;
     this.index = Index.Index_Null;
     tex = new Azul.Texture(texFile);
 }
 public void setTexture(TexEnum tName, string filename)
 {
 }
 // public method remove that calls the private method pRemove
 public static void remove(TexEnum tName)
 {
     Instance.baseRemove(tName);
 }
 public static Texture find(TexEnum tName)
 {
     return (Texture)Instance.baseFind(tName);
 }
 // Adds a texture to the list. Create calls this method
 // with the newly created texture
 public static void add(TexEnum texName, string fileName)
 {
     Texture tex = (Texture)Instance.baseAdd();
     tex.Tex = new Azul.Texture(fileName);
     tex.setName(texName);
 }
示例#6
0
 public void setImage(ImageEnum iName, TexEnum tName, float x, float y, float width, float height)
 {
     name = iName;
     tex = TextureManager.find(tName);
     texCoords = new Azul.Rect(x, y, width, height);
 }
示例#7
0
        public static void add(ImageEnum imgName, TexEnum tex, float x, float y, float width, float height)
        {
            Image toAdd = (Image)Instance.baseAdd();

            toAdd.setImage(imgName, tex, x, y, width, height);
        }
示例#8
0
 public void setName(TexEnum s)
 {
     name = s;
 }