Exemplo n.º 1
0
        public static Image Add(Image.Name imgName, Texture.Name textName, float x, float y, float width, float height)
        {
            ImageManager pImgManager = ImageManager.privGetInstance();

            Debug.Assert(pImgManager != null);

            // grab an blank imgage node
            Image pImgNode = (Image)pImgManager.baseAdd();

            Debug.Assert(pImgNode != null);

            // find the corresponding texture pointer
            Texture pTexture = TextureManager.Find(textName);

            Debug.Assert(pTexture != null);


            //configure the image node
            pImgNode.Set(imgName, pTexture, x, y, width, height);

            return(pImgNode);
        }