public static Texture Add(TextureName texName, string assetName) { TextureManager texMan = TextureManager.GetInstance(); Texture tex = (Texture)texMan.BaseAdd(); Debug.Assert(tex != null); tex.Set(texName, assetName); return(tex); }
// PA2: Factory Method public Texture AddTexture(Texture.Name name, String source) { // Create new texture Texture ret = (Texture)this.PullFromReserved(); // Set Data ret.Set(name, source); // Add to the list this.Add(ret); return(ret); }
public static Texture Add(Texture.Name theName, string pTextureName) { // grab the manager TextureManager pTextMan = TextureManager.privGetInstance(); // grab an washed DLink cast as a Texture. It is already set in place. Texture pTextNode = (Texture)pTextMan.baseAdd(); // fill with values Debug.Assert(pTextureName != null); pTextNode.Set(theName, pTextureName); return(pTextNode); }
public static Texture Add(Texture.Name name, string pTextureName) { TextureManager pMan = TextureManager.PrivGetInstance(); Debug.Assert(pMan != null); Texture pTexture = (Texture)pMan.BaseAdd(); Debug.Assert(pTexture != null); // Initialize the date pTexture.Set(name, pTextureName); return(pTexture); }
public static Texture Add(Texture.Name name) { TextureManager pMan = TextureManager.PrivGetInstance(); Debug.Assert(pMan != null); Texture pNode = (Texture)pMan.BaseAdd(); Debug.Assert(pNode != null); pNode.Set(name); return(pNode); }
public static Texture Add(Texture.Name name, String pTexName) { TextureMan pTMan = TextureMan.PrivGetInstance(); Debug.Assert(pTMan != null); Texture pTNode = (Texture)pTMan.BaseAdd(); Debug.Assert(pTNode != null); Debug.Assert(pTexName != null); pTNode.Set(name, pTexName); return(pTNode); }
public static Texture Add(Texture.Name textureName, string pTextureName) { TextureManager pMan = privGetInstance(); Debug.Assert(pMan != null); Texture pNode = (Texture)pMan.baseAddToFront(); Debug.Assert(pNode != null); // set the data pNode.Set(textureName, pTextureName); return(pNode); }
public static Texture Add(Texture.Name name, string pTextureName) { TextureMan pMan = TextureMan.privGetInstance(); Debug.Assert(pMan != null); Texture pNode = (Texture)pMan.baseAdd(); Debug.Assert(pNode != null); // Check the data initialization Debug.Assert(pTextureName != null); pNode.Set(name, pTextureName); return(pNode); }
public static Texture Add(Texture.Name name, String pTextureName) { TextureMan pMan = TextureMan.PrivGetInstance(); Debug.Assert(pMan != null); Texture pNode = (Texture)pMan.BaseAdd(); Debug.Assert(pNode != null); // Initialize the data Debug.Assert(pTextureName != null); pNode.Set(name, pTextureName); return(pNode); }