|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.nativewindow.Capabilities javax.media.opengl.GLCapabilities
public class GLCapabilities
Specifies a set of OpenGL capabilities.
At creation time of a GLDrawable
using GLDrawableFactory
,
an instance of this class is passed,
describing the desired capabilities that a rendering context
must support, such as the OpenGL profile, color depth and whether stereo is enabled.
The actual capabilites of created GLDrawable
s are then reflected by their own
GLCapabilites instance, which can be queried with GLDrawable#getGLCapabilities()
.
It currently contains the minimal number of routines which allow
configuration on all supported window systems.
Constructor Summary | |
---|---|
GLCapabilities(GLProfile glp)
Creates a GLCapabilities object. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object obj)
|
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 |
getDepthBits()
Returns the number of bits requested for the depth buffer. |
boolean |
getDoubleBuffered()
Indicates whether double-buffering is enabled. |
GLProfile |
getGLProfile()
Returns the GL profile you desire or used by the drawable. |
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. |
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. |
boolean |
isPBuffer()
Indicates whether pbuffer is used/requested. |
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 |
setDepthBits(int depthBits)
Sets the number of bits requested for the depth buffer. |
void |
setDoubleBuffered(boolean onOrOff)
Enables or disables double buffering. |
void |
setGLProfile(GLProfile profile)
Sets the GL profile you desire |
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 |
setPBuffer(boolean onOrOff)
Enables or disables pbuffer usage. |
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 |
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. |
Methods inherited from class javax.media.nativewindow.Capabilities |
---|
getAlphaBits, getBlueBits, getGreenBits, getRedBits, getTransparentAlphaValue, getTransparentBlueValue, getTransparentGreenValue, getTransparentRedValue, isBackgroundOpaque, isOnscreen, setAlphaBits, setBackgroundOpaque, setBlueBits, setGreenBits, setOnscreen, setRedBits, setTransparentAlphaValue, setTransparentBlueValue, setTransparentGreenValue, setTransparentRedValue |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GLCapabilities(GLProfile glp)
glp
- GLProfile, or null for the default GLProfileMethod Detail |
---|
public Object clone()
clone
in class Capabilities
public boolean equals(Object obj)
equals
in class Capabilities
public GLProfile getGLProfile()
public void setGLProfile(GLProfile profile)
public boolean isPBuffer()
public void setPBuffer(boolean onOrOff)
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 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()
public String toString()
toString
in class Capabilities
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |