|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.TextureUnit
public class TextureUnit
Represents the state of a single texture unit.
| Field Summary | |
|---|---|
int |
alphaCombine
The alpha combine mode. |
int |
alphaOperand0
The first alpha combine operand. |
int |
alphaOperand1
The second alpha combine operand. |
int |
alphaOperand2
The third alpha combine operand. |
float |
alphaScale
The alpha combine scale. |
int |
alphaSource0
The first alpha combine source. |
int |
alphaSource1
The second alpha combine source. |
int |
alphaSource2
The third alpha combine source. |
boolean |
dirty
Set when the state has changed and must be reapplied. |
Color4f |
envColor
The texture environment color. |
int |
envMode
The texture environment mode. |
int |
genModeQ
The q texture coordinate generation mode (-1 for disabled). |
int |
genModeR
The r texture coordinate generation mode (-1 for disabled). |
int |
genModeS
The s texture coordinate generation mode (-1 for disabled). |
int |
genModeT
The t texture coordinate generation mode (-1 for disabled). |
Vector4f |
genPlaneQ
The q texture coordinate generation plane. |
Vector4f |
genPlaneR
The r texture coordinate generation plane. |
Vector4f |
genPlaneS
The s texture coordinate generation plane. |
Vector4f |
genPlaneT
The t texture coordinate generation plane. |
float |
lodBias
The texture level of detail bias. |
int |
rgbCombine
The RGB combine mode. |
int |
rgbOperand0
The first RGB combine operand. |
int |
rgbOperand1
The second RGB combine operand. |
int |
rgbOperand2
The third RGB combine operand. |
float |
rgbScale
The RGB combine scale. |
int |
rgbSource0
The first RGB combine source. |
int |
rgbSource1
The second RGB combine source. |
int |
rgbSource2
The third RGB combine source. |
Texture |
texture
The texture bound to this unit. |
Transform3D |
transform
The texture transform. |
| Constructor Summary | |
|---|---|
TextureUnit()
Creates an empty texture unit. |
|
TextureUnit(Texture texture)
Creates a simple texture unit. |
|
| Method Summary | |
|---|---|
boolean |
allGenModesEqual(int mode)
Checks whether all of the unit's gen modes equal the supplied mode. |
boolean |
anyGenModesEqual(int mode)
Checks whether any of the unit's gen modes equal the supplied mode. |
void |
setTexture(Texture texture)
Sets the texture and the dirty flag. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Texture texture
public int envMode
public Color4f envColor
public int rgbCombine
public int alphaCombine
public int rgbSource0
public int rgbSource1
public int rgbSource2
public int alphaSource0
public int alphaSource1
public int alphaSource2
public int rgbOperand0
public int rgbOperand1
public int rgbOperand2
public int alphaOperand0
public int alphaOperand1
public int alphaOperand2
public float rgbScale
public float alphaScale
public float lodBias
public int genModeS
public Vector4f genPlaneS
public int genModeT
public Vector4f genPlaneT
public int genModeR
public Vector4f genPlaneR
public int genModeQ
public Vector4f genPlaneQ
public Transform3D transform
public boolean dirty
| Constructor Detail |
|---|
public TextureUnit(Texture texture)
public TextureUnit()
| Method Detail |
|---|
public void setTexture(Texture texture)
public boolean allGenModesEqual(int mode)
public boolean anyGenModesEqual(int mode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||