public class GLCapabilities extends Object implements Cloneable
Constructor and Description |
---|
GLCapabilities()
Creates a GLCapabilities object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
getAccumAlphaBits()
Returns the number of bits requested for the accumulation
buffer's alpha component.
|
int |
getAccumBlueBits()
Returns the number of bits requested for the accumulation
buffer's blue component.
|
int |
getAccumGreenBits()
Returns the number of bits requested for the accumulation
buffer's green component.
|
int |
getAccumRedBits()
Returns the number of bits requested for the accumulation
buffer's red component.
|
int |
getAlphaBits()
Returns the number of bits requested for the color buffer's
alpha component.
|
int |
getBlueBits()
Returns the number of bits requested for the color buffer's blue
component.
|
int |
getDepthBits()
Returns the number of bits requested for the depth buffer.
|
boolean |
getDoubleBuffered()
Indicates whether double-buffering is enabled.
|
int |
getGreenBits()
Returns the number of bits requested for the color buffer's
green component.
|
boolean |
getHardwareAccelerated()
Indicates whether hardware acceleration is enabled.
|
int |
getNumSamples()
Returns the number of sample buffers to be allocated if sample
buffers are enabled.
|
boolean |
getPbufferFloatingPointBuffers()
For pbuffers only, returns whether floating-point buffers should
be used if available.
|
boolean |
getPbufferRenderToTexture()
For pbuffers only, returns whether the render-to-texture
extension should be used if available.
|
boolean |
getPbufferRenderToTextureRectangle()
For pbuffers only, returns whether the render-to-texture
extension should be used.
|
int |
getRedBits()
Returns the number of bits requested for the color buffer's red
component.
|
boolean |
getSampleBuffers()
Returns whether sample buffers for full-scene antialiasing
(FSAA) should be allocated for this drawable.
|
int |
getStencilBits()
Returns the number of bits requested for the stencil buffer.
|
boolean |
getStereo()
Indicates whether stereo is enabled.
|
void |
setAccumAlphaBits(int accumAlphaBits)
Sets number of bits requested for accumulation buffer's alpha
component.
|
void |
setAccumBlueBits(int accumBlueBits)
Sets the number of bits requested for the accumulation buffer's
blue component.
|
void |
setAccumGreenBits(int accumGreenBits)
Sets the number of bits requested for the accumulation buffer's
green component.
|
void |
setAccumRedBits(int accumRedBits)
Sets the number of bits requested for the accumulation buffer's
red component.
|
void |
setAlphaBits(int alphaBits)
Sets the number of bits requested for the color buffer's alpha
component.
|
void |
setBlueBits(int blueBits)
Sets the number of bits requested for the color buffer's blue
component.
|
void |
setDepthBits(int depthBits)
Sets the number of bits requested for the depth buffer.
|
void |
setDoubleBuffered(boolean onOrOff)
Enables or disables double buffering.
|
void |
setGreenBits(int greenBits)
Sets the number of bits requested for the color buffer's green
component.
|
void |
setHardwareAccelerated(boolean onOrOff)
Enables or disables hardware acceleration.
|
void |
setNumSamples(int numSamples)
If sample buffers are enabled, indicates the number of buffers
to be allocated.
|
void |
setPbufferFloatingPointBuffers(boolean onOrOff)
For pbuffers only, indicates whether floating-point buffers
should be used if available.
|
void |
setPbufferRenderToTexture(boolean onOrOff)
For pbuffers only, indicates whether the render-to-texture
extension should be used if available.
|
void |
setPbufferRenderToTextureRectangle(boolean onOrOff)
For pbuffers only, indicates whether the
render-to-texture-rectangle extension should be used if
available.
|
void |
setRedBits(int redBits)
Sets the number of bits requested for the color buffer's red
component.
|
void |
setSampleBuffers(boolean onOrOff)
Indicates whether sample buffers for full-scene antialiasing
(FSAA) should be allocated for this drawable.
|
void |
setStencilBits(int stencilBits)
Sets the number of bits requested for the stencil buffer.
|
void |
setStereo(boolean onOrOff)
Enables or disables stereo viewing.
|
String |
toString()
Returns a textual representation of this GLCapabilities
object.
|
public GLCapabilities()
public boolean getDoubleBuffered()
public void setDoubleBuffered(boolean onOrOff)
public boolean getStereo()
public void setStereo(boolean onOrOff)
public boolean getHardwareAccelerated()
public void setHardwareAccelerated(boolean onOrOff)
public int getDepthBits()
public void setDepthBits(int depthBits)
public int getStencilBits()
public void setStencilBits(int stencilBits)
public int getRedBits()
public void setRedBits(int redBits)
public int getGreenBits()
public void setGreenBits(int greenBits)
public int getBlueBits()
public void setBlueBits(int blueBits)
public int getAlphaBits()
public void setAlphaBits(int alphaBits)
public int getAccumRedBits()
public void setAccumRedBits(int accumRedBits)
public int getAccumGreenBits()
public void setAccumGreenBits(int accumGreenBits)
public int getAccumBlueBits()
public void setAccumBlueBits(int accumBlueBits)
public int getAccumAlphaBits()
public void setAccumAlphaBits(int accumAlphaBits)
public void setSampleBuffers(boolean onOrOff)
public boolean getSampleBuffers()
public void setNumSamples(int numSamples)
public int getNumSamples()
public void setPbufferFloatingPointBuffers(boolean onOrOff)
public boolean getPbufferFloatingPointBuffers()
public void setPbufferRenderToTexture(boolean onOrOff)
public boolean getPbufferRenderToTexture()
public void setPbufferRenderToTextureRectangle(boolean onOrOff)
public boolean getPbufferRenderToTextureRectangle()
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.