Codota Logo
com.watabou.gltextures
Code IndexAdd Codota to your IDE (free)

How to use com.watabou.gltextures

Best Java code snippets using com.watabou.gltextures (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: 00-Evan/shattered-pixel-dungeon

public static int pick( int index, int x, int y ) {
  SmartTexture tx = TextureCache.get( Assets.ITEMS );
  int rows = tx.width / SIZE;
  int row = index / rows;
  int col = index % rows;
  return tx.getPixel( col * SIZE + x, row * SIZE + y );
}

origin: 00-Evan/shattered-pixel-dungeon

@Override
public void reload() {
  super.reload();
  update();
}

origin: ConsideredHamster/YetAnotherPixelDungeon

public void reload() {
  id = new SmartTexture( bitmap ).id;
  filter( fModeMin, fModeMax );
  wrap( wModeH, wModeV );
}

origin: ConsideredHamster/YetAnotherPixelDungeon

public SmartTexture( Bitmap bitmap, int filtering, int wrapping ) {
  
  super();
  
  bitmap( bitmap );
  filter( filtering, filtering );
  wrap( wrapping, wrapping );
  
}

origin: 00-Evan/shattered-pixel-dungeon

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;
  }
  
}

origin: ConsideredHamster/YetAnotherPixelDungeon

  public Gradient( int colors[] ) {
    
    super( Bitmap.createBitmap( colors.length, 1, Bitmap.Config.ARGB_8888 ) );
    
    for (int i=0; i < colors.length; i++) {
      bitmap.setPixel( i, 0, colors[i] );
    }
    bitmap( bitmap );
    
    filter( LINEAR, LINEAR );
    wrap( CLAMP, CLAMP );
    
    TextureCache.add( Gradient.class, this );
  }
}
origin: 00-Evan/shattered-pixel-dungeon-gdx

public void add( Object key, int left, int top, int right, int bottom ) {
  add( key, uvRect( tx, left, top, right, bottom ) );
}

origin: ConsideredHamster/YetAnotherPixelDungeon

  private static RectF rect(Image icon, int x, int y, int w, int h ) {
    return icon.texture.uvRect( x, y, x + w, y + h);
  }
}
origin: ConsideredHamster/YetAnotherPixelDungeon

public PseudoPixel() {
  super( TextureCache.createSolid( 0xFFFFFFFF ) );
}

origin: ConsideredHamster/YetAnotherPixelDungeon

@Override
public void bitmap( Bitmap bitmap ) {
  bitmap( bitmap, false );
}

origin: 00-Evan/shattered-pixel-dungeon

public void grid( int width, int height ) {
  grid( 0, 0, width, height, tx.width / width );
}

origin: 00-Evan/shattered-pixel-dungeon

public void reload() {
  id = -1;
  generate();
}

origin: 00-Evan/shattered-pixel-dungeon-gdx

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;
  }
}

origin: 00-Evan/shattered-pixel-dungeon-gdx

public static int pick( int index, int x, int y ) {
  SmartTexture tx = TextureCache.get( Assets.ITEMS );
  int rows = tx.width / SIZE;
  int row = index / rows;
  int col = index % rows;
  return tx.getPixel( col * SIZE + x, row * SIZE + y );
}

origin: 00-Evan/shattered-pixel-dungeon-gdx

@Override
public void reload() {
  super.reload();
  update();
}

origin: 00-Evan/shattered-pixel-dungeon

public void add( Object key, int left, int top, int right, int bottom ) {
  add( key, uvRect( tx, left, top, right, bottom ) );
}

origin: 00-Evan/shattered-pixel-dungeon

@Override
public void bitmap( Bitmap bitmap ) {
  bitmap( bitmap, false );
}

origin: 00-Evan/shattered-pixel-dungeon

public void grid( int width ) {
  grid( width, tx.height );
}

origin: 00-Evan/shattered-pixel-dungeon-gdx

public void reload() {
  id = -1;
  generate();
}
origin: ConsideredHamster/YetAnotherPixelDungeon

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;
  }
  
}

com.watabou.gltextures

Most used classes

  • SmartTexture
  • TextureCache
  • BufferTexture
  • Atlas
  • Gradient
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now