|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.sgl.BlendState
public class BlendState
OpenGL blend state.
| Constructor Summary | |
|---|---|
BlendState()
Constructs blend state. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlendState()
| Method Detail |
|---|
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()
State
apply in interface 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||