aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-impl-CustomJavaCode-gl2.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-07-18 12:24:17 +0000
committerSven Gothel <[email protected]>2008-07-18 12:24:17 +0000
commite1c716511d4c36b3a6ae82eceeb74147a3001dfe (patch)
tree4357912fc5ee44428476ada1d16d5f265363a1b2 /make/gl-impl-CustomJavaCode-gl2.java
parentdb5aca42f5678f4f44750e8297464ca7bbbbc944 (diff)
- Using new config feature: 'IgnoreExtendedInterfaceSymbols <java class source file>'
and get rid of manual 'Ignore' configs for common stuff in the base interfaces. - Add: GLUnsupportedException: - Using new config feature 'UnsupportedExceptionType GLUnsupportedException' - GLUnsupportedException is used for anything 'UnsupportedOperationException' - GLU: - GLU itself is no more abstract - GLU contains the tesselator implementation - name, return type, modifiers and arguments - createGLU(..) - operated by profile name now. - GLU itself will be used for GLES2 - Cleanup: - gluegen/GL configs .. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1725 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-impl-CustomJavaCode-gl2.java')
-rw-r--r--make/gl-impl-CustomJavaCode-gl2.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/make/gl-impl-CustomJavaCode-gl2.java b/make/gl-impl-CustomJavaCode-gl2.java
index cf163ca0d..43faac362 100644
--- a/make/gl-impl-CustomJavaCode-gl2.java
+++ b/make/gl-impl-CustomJavaCode-gl2.java
@@ -188,7 +188,7 @@ private void checkBufferObject(boolean extension1,
if (!avail) {
if (!enabled)
return;
- throw new GLException("Required extensions not available to call this function");
+ throw new GLUnsupportedException("Required extensions not available to call this function");
}
int buffer = bufferStateTracker.getBoundBufferObject(state, this);
if (enabled) {
@@ -313,7 +313,7 @@ private Map/*<ARBVBOKey, ByteBuffer>*/ arbVBOCache = new HashMap();
public java.nio.ByteBuffer glMapBuffer(int target, int access) {
final long __addr_ = ((GL2ProcAddressTable)_context.getGLProcAddressTable())._addressof_glMapBuffer;
if (__addr_ == 0) {
- throw new GLException("Method \"glMapBuffer\" not available");
+ throw new GLUnsupportedException("Method \"glMapBuffer\" not available");
}
int sz = bufferSizeTracker.getBufferSize(bufferStateTracker,
target,
@@ -337,3 +337,18 @@ public java.nio.ByteBuffer glMapBuffer(int target, int access) {
/** Encapsulates function pointer for OpenGL function <br>: <code> LPVOID glMapBuffer(GLenum target, GLenum access); </code> */
native private long dispatch_glMapBuffer(int target, int access, long glProcAddress);
+ /** Dummy implementation for the ES 2.0 function: <br> <code> void {@native glShaderBinary}(GLint n, const GLuint * shaders, GLenum binaryformat, const void * binary, GLint length); </code> <br> Always throws a GLException! */
+ public void glShaderBinary(int n, java.nio.IntBuffer shaders, int binaryformat, java.nio.Buffer binary, int length) {
+ throw new GLUnsupportedException("Method \"glShaderBinary\" not available");
+ }
+
+ /** Dummy implementation for the ES 2.0 function: <br> <code> void {@native glShaderBinary}(GLint n, const GLuint * shaders, GLenum binaryformat, const void * binary, GLint length); </code> <br> Always throws a GLException! */
+ public void glShaderBinary(int n, int[] shaders, int shaders_offset, int binaryformat, java.nio.Buffer binary, int length) {
+ throw new GLUnsupportedException("Method \"glShaderBinary\" not available");
+ }
+
+ public void glReleaseShaderCompiler() {
+ // nothing to do
+ }
+
+