|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.nodes.Node
net.java.joglutils.msg.nodes.Blend
public class Blend
Provides control over OpenGL blending modes.
Field Summary | |
---|---|
static int |
CONSTANT_ALPHA
One of the blend functions. |
static int |
CONSTANT_COLOR
One of the blend functions. |
static int |
DST_ALPHA
One of the blend functions. |
static int |
DST_COLOR
One of the blend functions. |
static int |
FUNC_ADD
One of the blend equations. |
static int |
FUNC_REVERSE_SUBTRACT
One of the blend equations. |
static int |
FUNC_SUBTRACT
One of the blend equations. |
static int |
MAX
One of the blend equations. |
static int |
MIN
One of the blend equations. |
static int |
ONE
One of the blend functions. |
static int |
ONE_MINUS_CONSTANT_ALPHA
One of the blend functions. |
static int |
ONE_MINUS_CONSTANT_COLOR
One of the blend functions. |
static int |
ONE_MINUS_DST_ALPHA
One of the blend functions. |
static int |
ONE_MINUS_DST_COLOR
One of the blend functions. |
static int |
ONE_MINUS_SRC_ALPHA
One of the blend functions. |
static int |
ONE_MINUS_SRC_COLOR
One of the blend functions. |
static int |
SRC_ALPHA
One of the blend functions. |
static int |
SRC_ALPHA_SATURATE
One of the blend functions. |
static int |
SRC_COLOR
One of the blend functions. |
static int |
ZERO
One of the blend functions. |
Constructor Summary | |
---|---|
Blend()
|
Method Summary | |
---|---|
void |
doAction(Action action)
Performs the "typical" operation for this node when an action is applied to it. |
Vec4f |
getBlendColor()
Gets the blending color; see the documentation for glBlendColor for more details. |
int |
getBlendEquation()
Returns the blending equation. |
int |
getDestFunc()
Returns the destination blending function. |
boolean |
getEnabled()
Returns whether blending is enabled. |
int |
getSourceFunc()
Returns the source blending function. |
void |
setBlendColor(Vec4f color)
Sets the blending color; see the documentation for glBlendColor for more details. |
void |
setBlendEquation(int equation)
Sets the blending equation to one of FUNC_ADD, FUNC_SUBTRACT, FUNC_REVERSE_SUBTRACT, MIN, or MAX. |
void |
setDestFunc(int func)
Sets the destination blending function to one of ZERO, ONE, SRC_COLOR, ONE_MINUS_SRC_COLOR, DST_COLOR, ONE_MINUS_DST_COLOR, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA, SRC_ALPHA_SATURATE, CONSTANT_COLOR, ONE_MINUS_CONSTANT_COLOR, CONSTANT_ALPHA, or ONE_MINUS_CONSTANT_ALPHA. |
void |
setEnabled(boolean enabled)
Sets whether blending is enabled. |
void |
setSourceFunc(int func)
Sets the source blending function to one of ZERO, ONE, SRC_COLOR, ONE_MINUS_SRC_COLOR, DST_COLOR, ONE_MINUS_DST_COLOR, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA, SRC_ALPHA_SATURATE, CONSTANT_COLOR, ONE_MINUS_CONSTANT_COLOR, CONSTANT_ALPHA, or ONE_MINUS_CONSTANT_ALPHA. |
Methods inherited from class net.java.joglutils.msg.nodes.Node |
---|
rayPick, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ZERO
public static final int ONE
public static final int SRC_COLOR
public static final int ONE_MINUS_SRC_COLOR
public static final int DST_COLOR
public static final int ONE_MINUS_DST_COLOR
public static final int SRC_ALPHA
public static final int ONE_MINUS_SRC_ALPHA
public static final int DST_ALPHA
public static final int ONE_MINUS_DST_ALPHA
public static final int SRC_ALPHA_SATURATE
public static final int CONSTANT_COLOR
public static final int ONE_MINUS_CONSTANT_COLOR
public static final int CONSTANT_ALPHA
public static final int ONE_MINUS_CONSTANT_ALPHA
public static final int FUNC_ADD
public static final int FUNC_SUBTRACT
public static final int FUNC_REVERSE_SUBTRACT
public static final int MIN
public static final int MAX
Constructor Detail |
---|
public Blend()
Method Detail |
---|
public void setEnabled(boolean enabled)
public boolean getEnabled()
public void setSourceFunc(int func)
public int getSourceFunc()
public void setDestFunc(int func)
public int getDestFunc()
public void setBlendEquation(int equation)
public int getBlendEquation()
public void setBlendColor(Vec4f color)
public Vec4f getBlendColor()
public void doAction(Action action)
Node
doAction
in class Node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |