public void reload() { id = new SmartTexture( bitmap ).id; filter( fModeMin, fModeMax ); wrap( wModeH, wModeV ); }
public synchronized static SmartTexture get( Object src ) { if (all.containsKey( src )) { return all.get( src ); } else if (src instanceof SmartTexture) { return (SmartTexture)src; } else { SmartTexture tx = new SmartTexture( getBitmap( src ) ); all.put( src, tx ); return tx; } }
private static RectF rect(Image icon, int x, int y, int w, int h ) { return icon.texture.uvRect( x, y, x + w, y + h); } }
public PseudoPixel() { super( TextureCache.createSolid( 0xFFFFFFFF ) ); }
@Override public void bitmap( Bitmap bitmap ) { bitmap( bitmap, false ); }
public void grid( int width, int height ) { grid( 0, 0, width, height, tx.width / width ); }
public void reload() { id = -1; generate(); }
public synchronized static SmartTexture get( Object src ) { if (all.containsKey( src )) { return all.get( src ); } else if (src instanceof SmartTexture) { return (SmartTexture)src; } else { SmartTexture tx = new SmartTexture( getBitmap( src ) ); all.put( src, tx ); return tx; } }
@Override public void bitmap( Bitmap bitmap ) { bitmap( bitmap, false ); }
public void grid( int width ) { grid( width, tx.height ); }
public void reload() { id = -1; generate(); }
public static SmartTexture get( Object src ) { if (all.containsKey( src )) { return all.get( src ); } else if (src instanceof SmartTexture) { return (SmartTexture)src; } else { SmartTexture tx = new SmartTexture( getBitmap( src ) ); all.put( src, tx ); return tx; } }