diff options
author | Kenneth Russel <[email protected]> | 2005-12-05 22:14:30 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-12-05 22:14:30 +0000 |
commit | 7bc47042a9203aa18a71b92ef8ef90af19518d51 (patch) | |
tree | 728b96399d20f68dba4270e763940c198f93f2c3 /src | |
parent | a75691c16cf61df135d028e145b2c39040de9b4b (diff) |
Added thrown exception information for GLDrawableFactory's
createGLPbuffer, createExternalGLContext and createExternalGLDrawable.
Fixed build breakage with last checkin.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@480 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/javax/media/opengl/GLDrawableFactory.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/classes/javax/media/opengl/GLDrawableFactory.java b/src/classes/javax/media/opengl/GLDrawableFactory.java index 7f62e1af4..ded3a0304 100644 --- a/src/classes/javax/media/opengl/GLDrawableFactory.java +++ b/src/classes/javax/media/opengl/GLDrawableFactory.java @@ -187,12 +187,16 @@ public abstract class GLDrawableFactory { /** * Creates a GLPbuffer with the given capabilites and dimensions. + * + * @throws GLException if any window system-specific errors caused + * the creation of the GLPbuffer to fail. */ public abstract GLPbuffer createGLPbuffer(GLCapabilities capabilities, GLCapabilitiesChooser chooser, int initialWidth, int initialHeight, - GLContext shareWith); + GLContext shareWith) + throws GLException; //---------------------------------------------------------------------- // Methods for interacting with third-party OpenGL libraries @@ -215,8 +219,12 @@ public abstract class GLDrawableFactory { * the <code>GLContext</code>. A new <code>GLContext</code> object * should be created for each newly-created underlying OpenGL * context. + * + * @throws GLException if any window system-specific errors caused + * the creation of the external GLContext to fail. */ - public abstract GLContext createExternalGLContext(); + public abstract GLContext createExternalGLContext() + throws GLException; /** * Returns true if it is possible to create an external GLDrawable @@ -257,6 +265,10 @@ public abstract class GLDrawableFactory { * {@link #canCreateExternalGLDrawable} should be called first to * see if it is present. For example, on X11 platforms, this API * requires the presence of GLX 1.3 or later. + * + * @throws GLException if any window system-specific errors caused + * the creation of the external GLDrawable to fail. */ - public abstract GLDrawable createExternalGLDrawable(); + public abstract GLDrawable createExternalGLDrawable() + throws GLException; } |