summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/support/glrenderer/GLId.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/support/glrenderer/GLId.java')
-rw-r--r--src/com/android/camera/support/glrenderer/GLId.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/com/android/camera/support/glrenderer/GLId.java b/src/com/android/camera/support/glrenderer/GLId.java
new file mode 100644
index 000000000..695343b12
--- /dev/null
+++ b/src/com/android/camera/support/glrenderer/GLId.java
@@ -0,0 +1,17 @@
+package com.android.camera.support.glrenderer;
+
+import javax.microedition.khronos.opengles.GL11;
+import javax.microedition.khronos.opengles.GL11ExtensionPack;
+
+// This mimics corresponding GL functions.
+public interface GLId {
+ public int generateTexture();
+
+ public void glGenBuffers(int n, int[] buffers, int offset);
+
+ public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset);
+
+ public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset);
+
+ public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset);
+}