Example #1
0
        public static Image Add(ImageName imgName, TextureName texName, float x, float y, float width, float height)
        {   // Remove from Reserve, Add to Active
            ImageManager imageMan = ImageManager.GetInstance();
            Image        pImage   = (Image)imageMan.BaseAdd();

            Debug.Assert(pImage != null);
            pImage.Set(imgName, texName, x, y, width, height);
            return(pImage);
        }
Example #2
0
        public static Image Add(Image.Name imageName)
        {
            ImageManager pMan = ImageManager.PrivGetInstance();

            Debug.Assert(pMan != null);

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

            Debug.Assert(pNode != null);

            pNode.Set(imageName);

            return(pNode);
        }
Example #3
0
        public static Image Add(Image.Name imageName, Texture.Name TextureName, float x, float y, float width, float height)
        {
            ImageManager pMan = ImageManager.PrivGetInstance();

            Debug.Assert(pMan != null);

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

            Debug.Assert(pNode != null);

            Texture pTexture = TextureManager.Find(TextureName);

            Debug.Assert(pTexture != null);

            pNode.Set(imageName, pTexture, x, y, width, height);

            return(pNode);
        }
Example #4
0
        public static Image Add(Image.Name name, Texture.Name textureName, float x, float y, float width, float height)
        {
            ImageManager pInstance = ImageManager.PrivGetInstance();

            Debug.Assert(pInstance != null);

            Image pImage = (Image)pInstance.BaseAdd();

            Debug.Assert(pImage != null);

            Texture pTexture = TextureManager.Find(textureName);

            Debug.Assert(pTexture != null);

            // Initialize the date
            pImage.Set(name, pTexture, x, y, width, height);
            return(pImage);
        }