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 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); }