aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmake/gl-es2.cfg13
-rw-r--r--make/gl-gl2.cfg13
-rw-r--r--make/gl-gl2es12.cfg13
-rwxr-xr-xmake/gl-if-gl2_es2.cfg13
4 files changed, 52 insertions, 0 deletions
diff --git a/make/gl-es2.cfg b/make/gl-es2.cfg
index 167ad1fbe..feeb7d1ca 100755
--- a/make/gl-es2.cfg
+++ b/make/gl-es2.cfg
@@ -57,6 +57,19 @@ CustomCCode #include <GLES2/gl2ext.h>
CustomCCode #include <stdlib.h>
Include intptr.cfg
+CustomJavaCode GLES2 public void glShaderSource(int shader, java.lang.String[] source);
+CustomJavaCode GLES2 public void glShaderSource(IntBuffer shaders, java.lang.String[][] sources);
+CustomJavaCode GLES2 public void glShaderBinary(IntBuffer shaders, int binFormat, java.nio.Buffer bin);
+CustomJavaCode GLES2 /**
+CustomJavaCode GLES2 * Wrapper for glShaderBinary and glShaderSource.
+CustomJavaCode GLES2 * Tries binary first, if not null, then the source code, if not null.
+CustomJavaCode GLES2 * The binary trial will fail in case no binary interface exist (GL2 profile),
+CustomJavaCode GLES2 * hence the fallback to the source code.
+CustomJavaCode GLES2 */
+CustomJavaCode GLES2 public void glShaderBinaryOrSource(IntBuffer shaders,
+CustomJavaCode GLES2 int binFormat, java.nio.Buffer bin,
+CustomJavaCode GLES2 java.lang.String[][] sources);
+
IncludeAs CustomJavaCode GLES2Impl gl-impl-CustomJavaCode-common.java
IncludeAs CustomJavaCode GLES2Impl gl-impl-CustomJavaCode-gles2.java
IncludeAs CustomJavaCode GLES2Impl gl-impl-CustomJavaCode-gl2_es2.java
diff --git a/make/gl-gl2.cfg b/make/gl-gl2.cfg
index f8e940a4a..fb137b458 100644
--- a/make/gl-gl2.cfg
+++ b/make/gl-gl2.cfg
@@ -56,6 +56,19 @@ CustomJavaCode GL2Impl glDepthRange((double)zNear, (double)zFar); }
Include gl-headers.cfg
Include intptr.cfg
+CustomJavaCode GL2 public void glShaderSource(int shader, java.lang.String[] source);
+CustomJavaCode GL2 public void glShaderSource(IntBuffer shaders, java.lang.String[][] sources);
+CustomJavaCode GL2 public void glShaderBinary(IntBuffer shaders, int binFormat, java.nio.Buffer bin);
+CustomJavaCode GL2 /**
+CustomJavaCode GL2 * Wrapper for glShaderBinary and glShaderSource.
+CustomJavaCode GL2 * Tries binary first, if not null, then the source code, if not null.
+CustomJavaCode GL2 * The binary trial will fail in case no binary interface exist (GL2 profile),
+CustomJavaCode GL2 * hence the fallback to the source code.
+CustomJavaCode GL2 */
+CustomJavaCode GL2 public void glShaderBinaryOrSource(IntBuffer shaders,
+CustomJavaCode GL2 int binFormat, java.nio.Buffer bin,
+CustomJavaCode GL2 java.lang.String[][] sources);
+
IncludeAs CustomJavaCode GL2Impl gl-impl-CustomJavaCode-common.java
IncludeAs CustomJavaCode GL2Impl gl-impl-CustomJavaCode-gl2.java
IncludeAs CustomJavaCode GL2Impl gl-impl-CustomJavaCode-gl2_es2.java
diff --git a/make/gl-gl2es12.cfg b/make/gl-gl2es12.cfg
index 4eea286d8..1f80fa7a1 100644
--- a/make/gl-gl2es12.cfg
+++ b/make/gl-gl2es12.cfg
@@ -52,6 +52,19 @@ CustomJavaCode GL2ES12Impl glDepthRange((double)zNear, (double)zFar); }
Include gl-headers.cfg
Include intptr.cfg
+CustomJavaCode GL2ES12 public void glShaderSource(int shader, java.lang.String[] source);
+CustomJavaCode GL2ES12 public void glShaderSource(IntBuffer shaders, java.lang.String[][] sources);
+CustomJavaCode GL2ES12 public void glShaderBinary(IntBuffer shaders, int binFormat, java.nio.Buffer bin);
+CustomJavaCode GL2ES12 /**
+CustomJavaCode GL2ES12 * Wrapper for glShaderBinary and glShaderSource.
+CustomJavaCode GL2ES12 * Tries binary first, if not null, then the source code, if not null.
+CustomJavaCode GL2ES12 * The binary trial will fail in case no binary interface exist (GL2 profile),
+CustomJavaCode GL2ES12 * hence the fallback to the source code.
+CustomJavaCode GL2ES12 */
+CustomJavaCode GL2ES12 public void glShaderBinaryOrSource(IntBuffer shaders,
+CustomJavaCode GL2ES12 int binFormat, java.nio.Buffer bin,
+CustomJavaCode GL2ES12 java.lang.String[][] sources);
+
IncludeAs CustomJavaCode GL2ES12Impl gl-impl-CustomJavaCode-common.java
IncludeAs CustomJavaCode GL2ES12Impl gl-impl-CustomJavaCode-gl2es12.java
IncludeAs CustomJavaCode GL2ES12Impl gl-impl-CustomJavaCode-gl2_es2.java
diff --git a/make/gl-if-gl2_es2.cfg b/make/gl-if-gl2_es2.cfg
index 56a776035..6211d562f 100755
--- a/make/gl-if-gl2_es2.cfg
+++ b/make/gl-if-gl2_es2.cfg
@@ -36,3 +36,16 @@ GLHeader GLES2/gl2ext.h
# Pick up on-line OpenGL javadoc thanks to user cylab on javagaming.org forums
TagNativeBinding true
+CustomJavaCode GL2ES2 public void glShaderSource(int shader, java.lang.String[] source);
+CustomJavaCode GL2ES2 public void glShaderSource(IntBuffer shaders, java.lang.String[][] sources);
+CustomJavaCode GL2ES2 public void glShaderBinary(IntBuffer shaders, int binFormat, java.nio.Buffer bin);
+CustomJavaCode GL2ES2 /**
+CustomJavaCode GL2ES2 * Wrapper for glShaderBinary and glShaderSource.
+CustomJavaCode GL2ES2 * Tries binary first, if not null, then the source code, if not null.
+CustomJavaCode GL2ES2 * The binary trial will fail in case no binary interface exist (GL2 profile),
+CustomJavaCode GL2ES2 * hence the fallback to the source code.
+CustomJavaCode GL2ES2 */
+CustomJavaCode GL2ES2 public void glShaderBinaryOrSource(IntBuffer shaders,
+CustomJavaCode GL2ES2 int binFormat, java.nio.Buffer bin,
+CustomJavaCode GL2ES2 java.lang.String[][] sources);
+