diff options
author | Sven Gothel <[email protected]> | 2008-07-21 00:53:47 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-07-21 00:53:47 +0000 |
commit | 5ff0c4c7322ffe32f76d1072a1d95197c7b3d6c0 (patch) | |
tree | 3a46317c53cf597f809c171de63eb8683371462a /make/gl-gl2es12.cfg | |
parent | 3e43ef1a81bca32d2840c714c8e791d192ad88cc (diff) |
Proper: glShaderBinaryOrSource() for Profiles: ES2 + GL2*
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1730 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-gl2es12.cfg')
-rw-r--r-- | make/gl-gl2es12.cfg | 13 |
1 files changed, 13 insertions, 0 deletions
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 |