Esempio n. 1
0
        public static Texture Find(Texture.Name textureName)
        {
            //get the singleton
            TextureManager pMan = privGetInstance();

            Debug.Assert(pMan != null);
            // Compare functions only compares two Nodes

            // So:  Use a reference node
            //      fill in the needed data
            //      use in the Compare() function
            Debug.Assert(pTextureRef != null);
            pTextureRef.WashNodeData();

            //find the node by name
            pTextureRef.SetName(textureName);

            Texture pData = (Texture)pMan.baseFindNode(pTextureRef);

            return(pData);
        }