예제 #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();
  }