congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BufferTexture
Code IndexAdd Tabnine to your IDE (free)

How to use
BufferTexture
in
com.watabou.gltextures

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

origin: 00-Evan/shattered-pixel-dungeon

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

origin: 00-Evan/shattered-pixel-dungeon

  public void update(int top, int bottom){
    bind();
    filter( Texture.LINEAR, Texture.LINEAR );
    wrap( Texture.CLAMP, Texture.CLAMP);
    pixels.position(top*width);
    GLES20.glTexSubImage2D(GLES20.GL_TEXTURE_2D,
        0,
        0,
        top,
        width,
        bottom - top,
        GLES20.GL_RGBA,
        GLES20.GL_UNSIGNED_BYTE,
        pixels);
  }
}
origin: 00-Evan/shattered-pixel-dungeon

height = height2 * size;
BufferTexture tx = new BufferTexture(width2, height2);
TextureCache.add(FogOfWar.class, tx);
texture( tx );
origin: 00-Evan/shattered-pixel-dungeon-gdx

height = height2 * size;
BufferTexture tx = new BufferTexture(width2, height2);
TextureCache.add(FogOfWar.class, tx);
texture( tx );
origin: 00-Evan/shattered-pixel-dungeon-gdx

public void update(){
  bind();
  filter( Texture.LINEAR, Texture.LINEAR );
  wrap( Texture.CLAMP, Texture.CLAMP);
  pixels.position(0);
  Gdx.gl.glTexImage2D(
      GL20.GL_TEXTURE_2D,
      0,
      GL20.GL_RGBA,
      width,
      height,
      0,
      GL20.GL_RGBA,
      GL20.GL_UNSIGNED_BYTE,
      pixels );
}

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

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

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

  public void update(int top, int bottom){
    bind();
    filter( Texture.LINEAR, Texture.LINEAR );
    wrap( Texture.CLAMP, Texture.CLAMP);
    pixels.position(top*width);
    Gdx.gl.glTexSubImage2D(GL20.GL_TEXTURE_2D,
        0,
        0,
        top,
        width,
        bottom - top,
        GL20.GL_RGBA,
        GL20.GL_UNSIGNED_BYTE,
        pixels);
  }
}
origin: 00-Evan/shattered-pixel-dungeon

  fog.update(updating.get(0).top * PIX_PER_TILE, updating.get(0).bottom * PIX_PER_TILE);
} else {
  fog.update();
origin: 00-Evan/shattered-pixel-dungeon

public void update(){
  bind();
  filter( Texture.LINEAR, Texture.LINEAR );
  wrap( Texture.CLAMP, Texture.CLAMP);
  pixels.position(0);
  GLES20.glTexImage2D(
      GLES20.GL_TEXTURE_2D,
      0,
      GLES20.GL_RGBA,
      width,
      height,
      0,
      GLES20.GL_RGBA,
      GLES20.GL_UNSIGNED_BYTE,
      pixels );
}

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

  fog.update(updating.get(0).top * PIX_PER_TILE, updating.get(0).bottom * PIX_PER_TILE);
} else {
  fog.update();
com.watabou.gltexturesBufferTexture

Most used methods

  • update
  • <init>
  • bind
  • filter
  • wrap

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JLabel (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now