Ejemplo n.º 1
0
        public static Texture Add(TextureName texName, string assetName)
        {
            TextureManager texMan = TextureManager.GetInstance();
            Texture        tex    = (Texture)texMan.BaseAdd();

            Debug.Assert(tex != null);
            tex.Set(texName, assetName);
            return(tex);
        }
Ejemplo n.º 2
0
        // PA2: Factory Method
        public Texture AddTexture(Texture.Name name, String source)
        {
            // Create new texture
            Texture ret = (Texture)this.PullFromReserved();

            // Set Data
            ret.Set(name, source);

            // Add to the list
            this.Add(ret);

            return(ret);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        public static Texture Add(Texture.Name name, string pTextureName)
        {
            TextureManager pMan = TextureManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            Texture pTexture = (Texture)pMan.BaseAdd();

            Debug.Assert(pTexture != null);

            // Initialize the date
            pTexture.Set(name, pTextureName);
            return(pTexture);
        }
Ejemplo n.º 5
0
        public static Texture Add(Texture.Name name)
        {
            TextureManager pMan = TextureManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            Texture pNode = (Texture)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name);

            return(pNode);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        public static Texture Add(Texture.Name textureName, string pTextureName)
        {
            TextureManager pMan = privGetInstance();

            Debug.Assert(pMan != null);

            Texture pNode = (Texture)pMan.baseAddToFront();

            Debug.Assert(pNode != null);

            // set the data
            pNode.Set(textureName, pTextureName);

            return(pNode);
        }
        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);
        }
Ejemplo n.º 9
0
        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);
        }