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);
        }
예제 #2
0
        public static Texture Add(Texture.Name name, string pTextureFile)
        {
            //ensure call Create() first
            TextureMan pMan = TextureMan.GetInstance();

            Debug.Assert(pMan != null);

            //add Texture to active list
            Texture pTexture = (Texture)pMan.baseAdd();

            Debug.Assert(pTexture != null);

            // set new texture
            Debug.Assert(pTextureFile != null);
            pTexture.set(name, pTextureFile);

            return(pTexture);
        }