| Constructor and Description | 
|---|
BlendState()
Constructs blend state. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
apply()
Applies this OpenGL state. 
 | 
int | 
getAttributeBits()
Gets the OpenGL attribute bits for this state. 
 | 
java.awt.Color | 
getColor()
Gets the blend color. 
 | 
int | 
getDfactor()
Gets the blend function dfactor. 
 | 
int | 
getEquation()
Gets the blend equation. 
 | 
int | 
getSfactor()
Gets the blend function sfactor. 
 | 
boolean | 
hasBlendFunction()
Determines whether blend function is set. 
 | 
boolean | 
hasColor()
Determines whether blend color is set. 
 | 
boolean | 
hasEquation()
Determines whether blend equation is set. 
 | 
void | 
setColor(java.awt.Color color)
Sets the blend color. 
 | 
void | 
setEquation(int mode)
Sets the blend equation. 
 | 
void | 
setFunction(int sfactor,
           int dfactor)
Sets the blend function. 
 | 
void | 
unsetColor()
Unsets the blend color. 
 | 
void | 
unsetEquation()
Unsets the blend equation. 
 | 
void | 
unsetFunction()
Unsets the blend function. 
 | 
public boolean hasColor()
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - the blend color.public void unsetColor()
public boolean hasEquation()
public int getEquation()
public void setEquation(int mode)
mode - the blend equation.public void unsetEquation()
public boolean hasBlendFunction()
public int getSfactor()
public int getDfactor()
public void setFunction(int sfactor,
               int dfactor)
sfactor - the source factor.dfactor - the destination factor.public void unsetFunction()
public void apply()
Statepublic int getAttributeBits()
StateState.apply(). If these bits are passed to glPushAttrib before 
 calling State.apply(), then glPopAttrib will restore any OpenGL 
 state that is changed by that method.getAttributeBits in interface State