summaryrefslogtreecommitdiffstats
path: root/opengl/java/android/opengl/GLES10.java
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-04-24 10:35:11 -0700
committerJack Palevich <jackpal@google.com>2009-04-24 13:07:17 -0700
commita379585e6e3ff41db6d71a5cd0a0403931bc525d (patch)
tree38728985bfdc9da616259cfc4905587da798d6c6 /opengl/java/android/opengl/GLES10.java
parent7fc4b281750be2442a327e7aa9fb03c44096caf3 (diff)
downloadframeworks_base-a379585e6e3ff41db6d71a5cd0a0403931bc525d.zip
frameworks_base-a379585e6e3ff41db6d71a5cd0a0403931bc525d.tar.gz
frameworks_base-a379585e6e3ff41db6d71a5cd0a0403931bc525d.tar.bz2
Enable static Java APIs for OpenGL ES 1.1 extensions.
This is just plumbing. The Java APIs existed already, but there were no C APIs to hook the Java APIs up to. Now there are C APIs, so we can call them. Of course, whether or not the C APIs actually work when you call them depend upon the capabilities of the active OpenGL driver, which must be checked at run time. Also, while we're here, make the glGetString method static. It was always supposed to be static, but was accidentally implemented as non-static, because the code was copied from the non-static OpenGL ES classes.
Diffstat (limited to 'opengl/java/android/opengl/GLES10.java')
-rw-r--r--opengl/java/android/opengl/GLES10.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/opengl/java/android/opengl/GLES10.java b/opengl/java/android/opengl/GLES10.java
index e597d12..147b60f 100644
--- a/opengl/java/android/opengl/GLES10.java
+++ b/opengl/java/android/opengl/GLES10.java
@@ -671,20 +671,9 @@ public class GLES10 {
// C function const GLubyte * glGetString ( GLenum name )
- public native String _glGetString(
+ public static native String glGetString(
int name
);
-
- public String glGetString(
- int name
- ) {
- String returnValue;
- returnValue = _glGetString(
- name
- );
- return returnValue;
- }
-
// C function void glHint ( GLenum target, GLenum mode )
public static native void glHint(