|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.shape.Material
public class Material
| Field Summary | |
|---|---|
Color |
ambient
|
int |
blendmode
|
Color |
color
|
boolean |
depthmask
|
boolean |
depthtest
|
Color |
diffuse
|
boolean |
disableTextureCoordinates
|
Color |
emission
|
boolean |
enabled
|
boolean |
ignoreplugins
|
boolean |
lit
|
static int |
NORMALIZE_MODE
|
boolean |
normalizenormals
|
float |
shininess
|
boolean |
smoothshading
|
Color |
specular
|
boolean |
transparent
|
static boolean |
VERBOSE
|
boolean |
wireframe
|
| Constructor Summary | |
|---|---|
Material()
|
|
| Method Summary | |
|---|---|
void |
addPlugin(MaterialPlugin thePlugin)
|
TexturePlugin |
addTexture()
|
void |
addTexture(TexturePlugin theTexture)
this method does essentially the same as 'addPlugin'. |
void |
begin(GLContext theRenderContext)
|
TexturePlugin |
createTexture(Bitmap theBitmap)
|
void |
end(GLContext theRenderContext)
|
Color |
getColor()
|
java.util.Vector<MaterialPlugin> |
plugins()
|
boolean |
removePlugin(MaterialPlugin thePlugin)
|
boolean |
removeTexture()
this method does essentially the same as 'removePlugin'. |
boolean |
replacePlugin(MaterialPlugin theOldPlugin,
MaterialPlugin theNewPlugin)
|
void |
replaceTexture(TexturePlugin theTexture)
|
void |
setCustomBlendFunction(int theSource,
int theDestination)
used in conjunction with blendmode 'MATERIAL_BLEND_CUSTOM' |
TexturePlugin |
texture()
search for the texture plugin in the plugins container. returns 'null' if no texture plugin is available. it is adviced to get the texture once and than cache the reference, as each call to this method invokes a search through the plugin container. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NORMALIZE_MODE
public static boolean VERBOSE
public boolean enabled
public Color color
public boolean wireframe
public int blendmode
public boolean depthtest
public boolean depthmask
public boolean transparent
public boolean smoothshading
public boolean normalizenormals
public boolean disableTextureCoordinates
public Color ambient
public Color diffuse
public Color specular
public Color emission
public float shininess
public boolean lit
public boolean ignoreplugins
| Constructor Detail |
|---|
public Material()
| Method Detail |
|---|
public java.util.Vector<MaterialPlugin> plugins()
public Color getColor()
public void begin(GLContext theRenderContext)
public void end(GLContext theRenderContext)
public TexturePlugin texture()
TexturePlugin myTexture = myShape.material.texture(); myTexture.load(...
public void addTexture(TexturePlugin theTexture)
theTexture - TexturePluginpublic boolean removeTexture()
public void replaceTexture(TexturePlugin theTexture)
theTexture - TexturePluginpublic TexturePlugin createTexture(Bitmap theBitmap)
theBitmap - Bitmap
public TexturePlugin addTexture()
public void setCustomBlendFunction(int theSource,
int theDestination)
theSource - inttheDestination - intpublic void addPlugin(MaterialPlugin thePlugin)
public boolean replacePlugin(MaterialPlugin theOldPlugin,
MaterialPlugin theNewPlugin)
public boolean removePlugin(MaterialPlugin thePlugin)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||