summaryrefslogtreecommitdiffstats
path: root/make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-18 07:59:08 -0700
committerSven Gothel <[email protected]>2009-10-18 07:59:08 -0700
commit372767d3faa62d6e95dd8e9ad5c3105bf9614f3d (patch)
tree6e9a5f315004152a0c03dd468fc17ed5761c9bac /make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java
parente4b0e57b9fe28296fcd8d9eb372242c33643886b (diff)
Add OpenGL 3.x compatibility profile GL3bc,
where 'bc' is not a religious remark, but simply means 'backward compatible' :) GL3bc := GL2 + GL3, hence the interface does not define any new values or methods. Moved GL3's 3.1 part from gl3.h to gl3ext.h, so it can be included in gl3bc.c, besides gl2.h.
Diffstat (limited to 'make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java')
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java b/make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java
index 8e9c8bf01..2eca2b6ab 100644
--- a/make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java
+++ b/make/config/jogl/gl-impl-CustomJavaCode-gl2es12.java
@@ -30,6 +30,10 @@ public final boolean isGL() {
return true;
}
+public final boolean isGL3bc() {
+ return false;
+}
+
public final boolean isGL3() {
return false;
}
@@ -70,6 +74,10 @@ public final GL getGL() throws GLException {
return this;
}
+public final GL3bc getGL3bc() throws GLException {
+ throw new GLException("Not a GL3bc implementation");
+}
+
public final GL3 getGL3() throws GLException {
throw new GLException("Not a GL3 implementation");
}
@@ -147,7 +155,7 @@ public Object getPlatformGLExtensions() {
based on code in the SGI OpenGL sample implementation. */
private int imageSizeInBytes(int format, int type, int w, int h, int d,
- int dimensions, boolean pack) {
+ boolean pack) {
int elements = 0;
int esize = 0;
@@ -202,7 +210,7 @@ private int imageSizeInBytes(int format, int type, int w, int h, int d,
default:
return 0;
}
- return imageSizeInBytes(elements * esize, w, h, d, dimensions, pack);
+ return imageSizeInBytes(elements * esize, w, h, d, pack);
}
private GLBufferSizeTracker bufferSizeTracker;