update comments

This commit is contained in:
Hannes Janetzek 2013-03-09 12:23:18 +01:00
parent d322f9ac03
commit b3b392bdb8

View File

@ -21,6 +21,19 @@ import android.util.Log;
public final class BufferObject { public final class BufferObject {
private final static String TAG = BufferObject.class.getName(); private final static String TAG = BufferObject.class.getName();
// GL id
public int id;
// allocated bytes
public int size;
BufferObject next;
BufferObject(int id) {
this.id = id;
}
// ---------------------------- pool ----------------------------
private static BufferObject pool; private static BufferObject pool;
static int counter = 0; static int counter = 0;
@ -28,7 +41,7 @@ public final class BufferObject {
if (pool == null) { if (pool == null) {
if (counter != 0) if (counter != 0)
Log.d(TAG, "missing BufferObjects: " + counter); Log.d(TAG, "BUG: missing BufferObjects: " + counter);
createBuffers(10); createBuffers(10);
counter += 10; counter += 10;
@ -122,12 +135,4 @@ public final class BufferObject {
createBuffers(num); createBuffers(num);
counter = num; counter = num;
} }
public int id;
public int size;
BufferObject next;
BufferObject(int id) {
this.id = id;
}
} }