diff options
author | Kenneth Russel <[email protected]> | 2006-02-16 03:29:11 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-02-16 03:29:11 +0000 |
commit | dd18228ea67b24821570fd1c2f7053d7915b9cd0 (patch) | |
tree | 2f5e14866c899156cddaa29c08557819da2c7b13 /src/classes/javax/media/opengl | |
parent | 6014c01879f4cc043a772c5dcba79707e24bb59a (diff) |
Renamed "offscreen" capability bits in GLCapabilities to "pbuffer"
capability bits to be more explicit about how they are to be used; no
objections from JSR-231 expert group
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@616 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media/opengl')
-rw-r--r-- | src/classes/javax/media/opengl/GLCapabilities.java | 56 |
1 files changed, 26 insertions, 30 deletions
diff --git a/src/classes/javax/media/opengl/GLCapabilities.java b/src/classes/javax/media/opengl/GLCapabilities.java index c11cd7d05..0a36fe502 100644 --- a/src/classes/javax/media/opengl/GLCapabilities.java +++ b/src/classes/javax/media/opengl/GLCapabilities.java @@ -66,9 +66,9 @@ public class GLCapabilities implements Cloneable { private int numSamples = 2; // Bits for pbuffer creation - private boolean offscreenFloatingPointBuffers; - private boolean offscreenRenderToTexture; - private boolean offscreenRenderToTextureRectangle; + private boolean pbufferFloatingPointBuffers; + private boolean pbufferRenderToTexture; + private boolean pbufferRenderToTextureRectangle; /** Creates a GLCapabilities object. All attributes are in a default state. @@ -279,45 +279,41 @@ public class GLCapabilities implements Cloneable { return numSamples; } - /** For offscreen surfaces only (pbuffers), indicates whether - floating-point buffers should be used if available. Defaults to - false. */ - public void setOffscreenFloatingPointBuffers(boolean onOrOff) { - offscreenFloatingPointBuffers = onOrOff; + /** For pbuffers only, indicates whether floating-point buffers + should be used if available. Defaults to false. */ + public void setPbufferFloatingPointBuffers(boolean onOrOff) { + pbufferFloatingPointBuffers = onOrOff; } - /** For offscreen surfaces only (pbuffers), returns whether - floating-point buffers should be used if available. Defaults to - false. */ - public boolean getOffscreenFloatingPointBuffers() { - return offscreenFloatingPointBuffers; + /** For pbuffers only, returns whether floating-point buffers should + be used if available. Defaults to false. */ + public boolean getPbufferFloatingPointBuffers() { + return pbufferFloatingPointBuffers; } - /** For offscreen surfaces only (pbuffers), indicates whether the - render-to-texture extension should be used if available. - Defaults to false. */ - public void setOffscreenRenderToTexture(boolean onOrOff) { - offscreenRenderToTexture = onOrOff; + /** For pbuffers only, indicates whether the render-to-texture + extension should be used if available. Defaults to false. */ + public void setPbufferRenderToTexture(boolean onOrOff) { + pbufferRenderToTexture = onOrOff; } - /** For offscreen surfaces only (pbuffers), returns whether the - render-to-texture extension should be used if available. - Defaults to false. */ - public boolean getOffscreenRenderToTexture() { - return offscreenRenderToTexture; + /** For pbuffers only, returns whether the render-to-texture + extension should be used if available. Defaults to false. */ + public boolean getPbufferRenderToTexture() { + return pbufferRenderToTexture; } - /** For offscreen surfaces only (pbuffers), indicates whether the + /** For pbuffers only, indicates whether the render-to-texture-rectangle extension should be used if available. Defaults to false. */ - public void setOffscreenRenderToTextureRectangle(boolean onOrOff) { - offscreenRenderToTextureRectangle = onOrOff; + public void setPbufferRenderToTextureRectangle(boolean onOrOff) { + pbufferRenderToTextureRectangle = onOrOff; } - /** For offscreen surfaces only (pbuffers), returns whether the - render-to-texture extension should be used. Defaults to false. */ - public boolean getOffscreenRenderToTextureRectangle() { - return offscreenRenderToTextureRectangle; + /** For pbuffers only, returns whether the render-to-texture + extension should be used. Defaults to false. */ + public boolean getPbufferRenderToTextureRectangle() { + return pbufferRenderToTextureRectangle; } /** Returns a textual representation of this GLCapabilities |