|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.joglutils.msg.elements.Element
net.java.joglutils.msg.elements.ColorElement
public class ColorElement
Represents the current set of colors, which are applied on a per-vertex basis to any drawn geometry.
| Field Summary | |
|---|---|
protected int |
colorBinding
|
protected FloatBuffer |
colors
|
| Constructor Summary | |
|---|---|
ColorElement()
|
|
| Method Summary | |
|---|---|
static void |
enable(State defaultState)
Enables this element in the passed state, which should be the default for a given action. |
static FloatBuffer |
get(State state)
Returns the color data in the passed state. |
static ColorElement |
getInstance(State state)
Returns the instance of this element in the passed State. |
StateIndex |
getStateIndex()
All concrete element subclasses must register themselves with the State in order to reserve a slot, or index, in the state. |
static boolean |
isEnabled(State state)
Indicates whether this element is enabled in the given default state for a particular action. |
Element |
newInstance()
Creates a new instance initialized to the default values for the state element. |
void |
push(State state)
Pushes the element, allowing for side effects to occur. |
static void |
set(State state,
FloatBuffer colors)
Sets the color data in the passed state. |
void |
setElt(FloatBuffer colors)
Sets the color data in this element. |
| Methods inherited from class net.java.joglutils.msg.elements.Element |
|---|
getDepth, getNext, getNextInStack, pop, setDepth, setNext, setNextInStack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FloatBuffer colors
protected int colorBinding
| Constructor Detail |
|---|
public ColorElement()
| Method Detail |
|---|
public StateIndex getStateIndex()
Element
getStateIndex in class Elementpublic Element newInstance()
Element
newInstance in class Elementpublic static ColorElement getInstance(State state)
public static void enable(State defaultState)
public static boolean isEnabled(State state)
public static void set(State state,
FloatBuffer colors)
public static FloatBuffer get(State state)
public void push(State state)
Element
push in class Elementpublic void setElt(FloatBuffer colors)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||