Esempio n. 1
0
        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);
        }