예제 #1
0
  public final void purge() {
    // #if DEBUG
    Assert.isTrue("still valid", myHasTextureIdFlag);
    // #endif

    myUtilities.purge(myOglTextureId);
    myHasTextureIdFlag = false;
  }
예제 #2
0
  public final void makeUsing(final Bitmap aBitmap) {
    // #if DEBUG
    Assert.isFalse("not made", myHasTextureIdFlag);
    // #endif

    myWidth = aBitmap.getWidth();
    myHeight = aBitmap.getHeight();
    makeOpenglTexture(aBitmap);
  }