|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gl4java.GLCapabilities
Specifies a set of OpenGL capabilities that a rendering context must support, such as color depth and whether stereo is enabled. It currently contains the minimal number of routines which allow configuration on all supported window systems.
Constructor Summary | |
GLCapabilities()
Creates a GLCapabilities object. |
|
GLCapabilities(boolean doubleBuffer,
boolean stereoView,
boolean rgba,
int stencilBits,
int accumRedSize,
int accumGreenSize,
int accumBlueSize,
int accumAlphaSize)
Creates a GLCapabilities object. |
Method Summary | |
java.lang.Object |
clone()
|
int |
getAccumAlphaBits()
Returns number of bits requested for accumulation buffer's alpha component. |
int |
getAccumBlueBits()
Returns number of bits requested for accumulation buffer's blue component. |
int |
getAccumGreenBits()
Returns number of bits requested for accumulation buffer's green component. |
int |
getAccumRedBits()
Returns number of bits requested for accumulation buffer's red component. |
int |
getAlphaBits()
Returns number of bits requested for color buffer's alpha component. |
int |
getBlueBits()
Returns number of bits requested for color buffer's blue component. |
int |
getDepthBits()
Returns number of bits requested for depth buffer |
boolean |
getDoubleBuffered()
Indicates whether double-buffering is enabled. |
int |
getGreenBits()
Returns number of bits requested for color buffer's green component. |
long |
getNativeVisualID()
Get the fetched native VisualID. |
int |
getRedBits()
Returns number of bits requested for color buffer's red component. |
int |
getStencilBits()
Returns number of bits requested for stencil buffer |
boolean |
getStereo()
Indicates whether stereo is enabled. |
boolean |
getTrueColor()
Indicates whether true color (as opposed to indexed color) is enabled. |
static void |
main(java.lang.String[] args)
|
void |
setAccumAlphaBits(int accumAlphaBits)
Sets number of bits requested for accumulation buffer's alpha component. |
void |
setAccumBlueBits(int accumBlueBits)
Sets number of bits requested for accumulation buffer's blue component. |
void |
setAccumGreenBits(int accumGreenBits)
Sets number of bits requested for accumulation buffer's green component. |
void |
setAccumRedBits(int accumRedBits)
Sets number of bits requested for accumulation buffer's red component. |
void |
setAlphaBits(int alphaBits)
Sets number of bits requested for color buffer's alpha component. |
void |
setBlueBits(int blueBits)
Sets number of bits requested for color buffer's blue component. |
void |
setDepthBits(int depthBits)
Sets number of bits requested for depth buffer |
void |
setDoubleBuffered(boolean onOrOff)
Enables or disables double buffering. |
void |
setGreenBits(int greenBits)
Sets number of bits requested for color buffer's green component. |
void |
setNativeVisualID(long id)
Set the fetched native VisualID. |
void |
setRedBits(int redBits)
Sets number of bits requested for color buffer's red component. |
void |
setStencilBits(int stencilBits)
Sets number of bits requested for stencil buffer |
void |
setStereo(boolean onOrOff)
Enables or disables stereo viewing. |
void |
setTrueColor(boolean onOrOff)
Enables or disables true color (RGBA mode). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GLCapabilities(boolean doubleBuffer, boolean stereoView, boolean rgba, int stencilBits, int accumRedSize, int accumGreenSize, int accumBlueSize, int accumAlphaSize)
public GLCapabilities()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
public boolean getDoubleBuffered()
public boolean getTrueColor()
public boolean getStereo()
public void setDoubleBuffered(boolean onOrOff)
public void setTrueColor(boolean onOrOff)
public void setStereo(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 setNativeVisualID(long id)
public long getNativeVisualID()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |