|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.opengl.state.GLMaterial
public class GLMaterial
| Field Summary | |
|---|---|
private boolean |
alphaBlendingEnabled
|
private FloatBuffer |
ambient
|
(package private) float |
da
|
(package private) float |
db
|
private int |
destFactor
|
(package private) float |
dg
|
private FloatBuffer |
diffuse
|
private GLTexture |
diffuseTexture
|
private int |
diffuseTextureUnit
|
(package private) float |
dr
|
private FloatBuffer |
emission
|
private float |
offsetS
|
private float |
offsetT
|
private float |
repeatS
|
private float |
repeatT
|
private static int |
scid
|
private GLShader |
shader
|
private float |
shininess
|
private FloatBuffer |
specular
|
private int |
srcFactor
|
private GLTexture |
transparentTexture
|
private int |
transparentTextureUnit
|
private static int |
VEC4_SIZE
|
| Constructor Summary | |
|---|---|
GLMaterial()
Create an attribute. |
|
| Method Summary | |
|---|---|
boolean |
eq(GLMaterial glm)
|
private String |
fbts(FloatBuffer buf)
|
boolean |
getAlphaBlendingEnabled()
|
float |
getOffsetS()
Returns the offset for the S coordinate |
float |
getOffsetT()
Returns the offset for the T coordinate |
float |
getRepeatS()
Returns the repeat factor for the S coordinate |
float |
getRepeatT()
Returns the repeat factor for the T coordinate |
int |
getSCId()
Returns the id for this type of state component |
void |
glInit(GLRenderContext gl)
Required by GLRenderObject interface. |
void |
glRender(GLRenderContext gl)
Required by GLRenderObject interface. |
private void |
init()
|
void |
setAlphaBlendingEnabled(boolean mode)
|
void |
setAmbientColor(float[] ambient)
|
void |
setBlendDestFactor(int destFactor)
|
void |
setBlendSrcFactor(int srcFactor)
|
void |
setDiffuseColor(float[] diffuse)
|
void |
setDiffuseTexture(GLTexture glTex,
int texUnit)
|
void |
setEmissionColor(float[] emission)
|
void |
setGLShader(GLShader shader)
|
void |
setOffsetS(float r)
Sets the offset for the S coordinate |
void |
setOffsetT(float r)
Sets the offset for the T coordinate |
void |
setRepeatS(float r)
Sets the repeat factor for the S coordinate |
void |
setRepeatT(float r)
Sets the repeat factor for the T coordinate |
void |
setShininess(float shininess)
|
void |
setSpecularColor(float[] specular)
|
void |
setTransparantTexture(GLTexture glTex,
int texUnit)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static int scid
private FloatBuffer emission
private FloatBuffer ambient
private FloatBuffer diffuse
private FloatBuffer specular
private float shininess
private GLTexture diffuseTexture
private GLTexture transparentTexture
private int diffuseTextureUnit
private int transparentTextureUnit
private float repeatS
private float repeatT
private float offsetS
private float offsetT
private boolean alphaBlendingEnabled
private int srcFactor
private int destFactor
private GLShader shader
private static final int VEC4_SIZE
float dr
float dg
float db
float da
| Constructor Detail |
|---|
public GLMaterial()
| Method Detail |
|---|
private void init()
public void setGLShader(GLShader shader)
public boolean getAlphaBlendingEnabled()
public void setAlphaBlendingEnabled(boolean mode)
public void setBlendSrcFactor(int srcFactor)
public void setBlendDestFactor(int destFactor)
public void setEmissionColor(float[] emission)
public void setAmbientColor(float[] ambient)
public void setDiffuseColor(float[] diffuse)
public void setSpecularColor(float[] specular)
public void setShininess(float shininess)
public void setDiffuseTexture(GLTexture glTex,
int texUnit)
public void setTransparantTexture(GLTexture glTex,
int texUnit)
public void setRepeatS(float r)
public float getRepeatS()
public void setRepeatT(float r)
public float getRepeatT()
public void setOffsetS(float r)
public float getOffsetS()
public void setOffsetT(float r)
public float getOffsetT()
public final int getSCId()
getSCId in interface GLStateComponentpublic final boolean eq(GLMaterial glm)
public final void glInit(GLRenderContext gl)
glInit in interface GLRenderObjectpublic final void glRender(GLRenderContext gl)
glRender in interface GLRenderObjectprivate String fbts(FloatBuffer buf)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||