summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorThomas Tafertshofer <tafertth@google.com>2012-07-19 16:55:37 -0700
committerThomas Tafertshofer <tafertth@google.com>2012-07-19 17:04:47 -0700
commitdd06946252be852aa53eb6142a119b0fccc83cd1 (patch)
treede1b0c3ae2dda9d04bd5b451aa8522f146aff15b /opengl
parent60620a23996d7e6de72834bebde3b3c57981e219 (diff)
downloadframeworks_base-dd06946252be852aa53eb6142a119b0fccc83cd1.zip
frameworks_base-dd06946252be852aa53eb6142a119b0fccc83cd1.tar.gz
frameworks_base-dd06946252be852aa53eb6142a119b0fccc83cd1.tar.bz2
updated gles20 bindings, fixes broken methods
this adds correct versions of the broken GLES20 methods glGetShaderSource, glGetActiveAttrib and glGetActiveUniform. the old functions are still there and need to be @hide later. Bug: 6006380 Change-Id: I8127a77c4b89aa8a9a54bea88774077535e2139d
Diffstat (limited to 'opengl')
-rw-r--r--opengl/java/android/opengl/GLES20.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/opengl/java/android/opengl/GLES20.java b/opengl/java/android/opengl/GLES20.java
index 635f811..2eeae62 100644
--- a/opengl/java/android/opengl/GLES20.java
+++ b/opengl/java/android/opengl/GLES20.java
@@ -829,6 +829,25 @@ public class GLES20 {
byte name
);
+ // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
+
+ public static native String glGetActiveAttrib(
+ int program,
+ int index,
+ int[] size,
+ int sizeOffset,
+ int[] type,
+ int typeOffset
+ );
+
+ // C function void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
+
+ public static native String glGetActiveAttrib(
+ int program,
+ int index,
+ java.nio.IntBuffer size,
+ java.nio.IntBuffer type
+ );
// C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
public static native void glGetActiveUniform(
@@ -856,7 +875,25 @@ public class GLES20 {
java.nio.IntBuffer type,
byte name
);
+ // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
+ public static native String glGetActiveUniform(
+ int program,
+ int index,
+ int[] size,
+ int sizeOffset,
+ int[] type,
+ int typeOffset
+ );
+
+ // C function void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name )
+
+ public static native String glGetActiveUniform(
+ int program,
+ int index,
+ java.nio.IntBuffer size,
+ java.nio.IntBuffer type
+ );
// C function void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
public static native void glGetAttachedShaders(
@@ -1105,6 +1142,11 @@ public class GLES20 {
byte source
);
+ // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )
+
+ public static native String glGetShaderSource(
+ int shader
+ );
/*
* Copyright (C) 2009 The Android Open Source Project
*