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