diff options
author | Sven Gothel <[email protected]> | 2009-10-18 07:59:08 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-10-18 07:59:08 -0700 |
commit | 372767d3faa62d6e95dd8e9ad5c3105bf9614f3d (patch) | |
tree | 6e9a5f315004152a0c03dd468fc17ed5761c9bac /src/jogl/classes/javax/media/opengl/GLBase.java | |
parent | e4b0e57b9fe28296fcd8d9eb372242c33643886b (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 'src/jogl/classes/javax/media/opengl/GLBase.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLBase.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLBase.java b/src/jogl/classes/javax/media/opengl/GLBase.java index 92498077b..be5a6dc4f 100644 --- a/src/jogl/classes/javax/media/opengl/GLBase.java +++ b/src/jogl/classes/javax/media/opengl/GLBase.java @@ -64,9 +64,16 @@ public interface GLBase { public boolean isGL(); /** - * Indicates whether this GL object conforms to the GL3 profile. - * The GL3 profile reflects OpenGL versions greater or equal 3.1 - * @return whether this GL object conforms to the GL3 profile + * Indicates whether this GL object conforms to the GL3 compatibility profile. + * The GL3 compatibility profile merges the GL2 profile and GL3 core profile. + * @return whether this GL object conforms to the GL3 compatibility profile + */ + public boolean isGL3bc(); + + /** + * Indicates whether this GL object conforms to the GL3 core profile. + * The GL3 core profile reflects OpenGL versions greater or equal 3.1 + * @return whether this GL object conforms to the GL3 core profile */ public boolean isGL3(); @@ -124,6 +131,13 @@ public interface GLBase { public GL getGL() throws GLException; /** + * Casts this object to the GL3bc interface. + * @return this object cast to the GL3bc interface + * @throws GLException if this GLObject is not a GL3bc implementation + */ + public GL3bc getGL3bc() throws GLException; + + /** * Casts this object to the GL3 interface. * @return this object cast to the GL3 interface * @throws GLException if this GLObject is not a GL3 implementation |