|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.nativewindow.Capabilities
public class Capabilities
Specifies a set of capabilities that a window's rendering context must support, such as color depth per channel. It currently contains the minimal number of routines which allow configuration on all supported window systems.
Constructor Summary | |
---|---|
Capabilities()
Creates a Capabilities object. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object obj)
|
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 |
getGreenBits()
Returns the number of bits requested for the color buffer's green component. |
int |
getRedBits()
Returns the number of bits requested for the color buffer's red component. |
int |
getTransparentAlphaValue()
Gets the transparent alpha value for the frame buffer configuration. |
int |
getTransparentBlueValue()
Gets the transparent blue value for the frame buffer configuration. |
int |
getTransparentGreenValue()
Gets the transparent green value for the frame buffer configuration. |
int |
getTransparentRedValue()
Gets the transparent red value for the frame buffer configuration. |
boolean |
isBackgroundOpaque()
Indicates whether the background of this OpenGL context should be considered opaque. |
boolean |
isOnscreen()
Indicates whether the drawable surface is onscreen. |
void |
setAlphaBits(int alphaBits)
Sets the number of bits requested for the color buffer's alpha component. |
void |
setBackgroundOpaque(boolean opaque)
For on-screen OpenGL contexts on some platforms, sets whether the background of the context should be considered opaque. |
void |
setBlueBits(int blueBits)
Sets the number of bits requested for the color buffer's blue component. |
void |
setGreenBits(int greenBits)
Sets the number of bits requested for the color buffer's green component. |
void |
setOnscreen(boolean onscreen)
Sets whether the drawable surface supports onscreen. |
void |
setRedBits(int redBits)
Sets the number of bits requested for the color buffer's red component. |
void |
setTransparentAlphaValue(int transValueAlpha)
Sets the transparent alpha value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for alpha. |
void |
setTransparentBlueValue(int transValueBlue)
Sets the transparent blue value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for blue. |
void |
setTransparentGreenValue(int transValueGreen)
Sets the transparent green value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for green. |
void |
setTransparentRedValue(int transValueRed)
Sets the transparent red value for the frame buffer configuration, ranging from 0 to the maximum frame buffer value for red. |
String |
toString()
Returns a textual representation of this Capabilities object. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Capabilities()
Method Detail |
---|
public Object clone()
clone
in class Object
public boolean equals(Object obj)
equals
in class Object
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 void setBackgroundOpaque(boolean opaque)
true
; setting it to false
may incur a certain performance penalty, so it is not
recommended to arbitrarily set it to false. redValue = ( 1 << ( redBits - 1 ) ) -1
.
public boolean isBackgroundOpaque()
setBackgroundOpaque(boolean)
public void setOnscreen(boolean onscreen)
public boolean isOnscreen()
public int getTransparentRedValue()
isBackgroundOpaque()
equals true.
setTransparentRedValue(int)
public int getTransparentGreenValue()
isBackgroundOpaque()
equals true.
setTransparentGreenValue(int)
public int getTransparentBlueValue()
isBackgroundOpaque()
equals true.
setTransparentBlueValue(int)
public int getTransparentAlphaValue()
isBackgroundOpaque()
equals true.
setTransparentAlphaValue(int)
public void setTransparentRedValue(int transValueRed)
isBackgroundOpaque()
equals true.
public void setTransparentGreenValue(int transValueGreen)
isBackgroundOpaque()
equals true.
public void setTransparentBlueValue(int transValueBlue)
isBackgroundOpaque()
equals true.
public void setTransparentAlphaValue(int transValueAlpha)
isBackgroundOpaque()
equals true.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |