Пример #1
0
  public void clear() {
    for (TextureItem t = mTexture; t != null; t = t.dispose()) ;
    mAtlas.clear();
    items = null;

    // mTexture.bitmap.eraseColor(Color.TRANSPARENT);
    mTexture = pool.get();
    mCanvas.setBitmap(mTexture.bitmap);
  }
Пример #2
0
  public void onDrawFrame() {
    frametime = System.currentTimeMillis();
    rerender = false;

    mMap.beginFrame();

    draw();

    mMap.doneFrame(rerender);

    mBufferPool.releaseBuffers();
    TextureItem.disposeTextures();
  }