public static void printList()
        {
            TextureManager texManInst = TextureManager.getSingletonInstance();

            Debug.Assert(texManInst != null);

            Debug.WriteLine("");
            Debug.WriteLine("------ Active List: ---------------------------\n");

            MLink pNode = texManInst.activeList;

            int i = 0;

            while (pNode != null)
            {
                Debug.WriteLine("{0}: -------------", i);
                pNode.print();
                i++;
                pNode = pNode.pNext;
            }

            Debug.WriteLine("");
            Debug.WriteLine("------ Reserve List: ---------------------------\n");

            pNode = texManInst.reserveList;
            i     = 0;
            while (pNode != null)
            {
                Debug.WriteLine("{0}: -------------", i);
                pNode.print();
                i++;
                pNode = pNode.pNext;
            }
        }
        public static void remove(Texture targetNode)
        {
            TextureManager texManInst = TextureManager.getSingletonInstance();

            Debug.Assert(texManInst != null);

            Debug.Assert(targetNode != null);
            texManInst.genericRemove(targetNode);
        }
        public static Texture add(Texture.TextureName texureName, string azulTex)
        {
            TextureManager texManInst = TextureManager.getSingletonInstance();

            Debug.Assert(texManInst != null);
            Texture nodeAdded = (Texture)texManInst.genericAdd();

            Debug.Assert(nodeAdded != null);
            //set the attributes of the Image node

            nodeAdded.setAll(texureName, azulTex);

            return(nodeAdded);
        }
        public static Texture find(Texture.TextureName texName)
        {
            TextureManager texManInst = TextureManager.getSingletonInstance();

            Debug.Assert(texManInst != null);
            Texture pseudoTex = cTextureRef;

            Debug.Assert(pseudoTex != null);

            pseudoTex.setTextureName(texName);

            Texture targetTex = (Texture)texManInst.genericFind(pseudoTex);

            return(targetTex);
        }