From dd18228ea67b24821570fd1c2f7053d7915b9cd0 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 16 Feb 2006 03:29:11 +0000 Subject: 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 --- src/classes/javax/media/opengl/GLCapabilities.java | 56 ++++++++++------------ 1 file changed, 26 insertions(+), 30 deletions(-) (limited to 'src/classes/javax/media/opengl/GLCapabilities.java') 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 -- cgit v1.2.3