public void setAll(Glyph.Name name, int key, Texture.TextureName textName, float x, float y, float width, float height) { Debug.Assert(this.glyphRect != null); this.glyphName = name; this.glyphTex = TextureManager.find(textName); Debug.Assert(this.glyphTex != null); this.glyphRect.Set(x, y, width, height); this.key = key; }
public static Image add(Image.ImageName imageName, Texture.TextureName imageTexName, Azul.Rect imageRect) { ImageManager imgMInstance = ImageManager.getSingletonInstance(); Debug.Assert(imgMInstance != null); Image nodeAdded = (Image)imgMInstance.genericAdd(); Debug.Assert(nodeAdded != null); //set the attributes of the Image node Texture mtexture = TextureManager.find(imageTexName); Debug.Assert(mtexture != null); nodeAdded.setImageName(imageName); nodeAdded.setImageRect(imageRect); nodeAdded.setImageTexture(mtexture); return(nodeAdded); }