|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalCoreMaterial
public class CalCoreMaterial
The core material class.
| Nested Class Summary | |
|---|---|
static class |
CalCoreMaterial.Map
|
| Field Summary | |
|---|---|
protected org.openmali.vecmath2.Colorf |
ambientColor
|
protected org.openmali.vecmath2.Colorf |
diffuseColor
|
protected CalCoreMaterial.Map[] |
maps
|
protected java.lang.String |
name
|
protected float |
shininess
|
protected org.openmali.vecmath2.Colorf |
specularColor
|
protected java.lang.Object |
userData
|
| Constructor Summary | |
|---|---|
CalCoreMaterial()
Constructs the core material instance. |
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Colorf |
getAmbientColor()
Returns the ambient color. |
java.net.URL |
getBaseURL()
|
org.openmali.vecmath2.Colorf |
getDiffuseColor()
Returns the diffuse color. |
int |
getMapCount()
Returns the number of maps. |
java.lang.String |
getMapFilename(int mapId)
Returns a specified map texture filename. |
CalCoreMaterial.Map[] |
getMaps()
Returns the map vector. |
java.lang.Object |
getMapUserData(int mapId)
Provides access to a specified map user data. |
java.lang.String |
getName()
Gets the material resource name. |
float |
getShininess()
Returns the shininess factor. |
org.openmali.vecmath2.Colorf |
getSpecularColor()
Returns the specular color. |
java.lang.Object |
getUserData()
Provides access to the user data. |
void |
reserve(int mapCount)
Reserves memory for the maps. |
void |
setAmbientColor(org.openmali.vecmath2.Colorf ambientColor)
Sets the ambient color. |
void |
setBaseURL(java.net.URL baseURL)
|
void |
setDiffuseColor(org.openmali.vecmath2.Colorf diffuseColor)
Sets the diffuse color. |
void |
setMap(int mapId,
CalCoreMaterial.Map map)
Sets a specified map. |
void |
setMaps(CalCoreMaterial.Map[] maps)
|
void |
setMapUserData(int mapId,
java.lang.Object userData)
Stores specified map user data. |
void |
setName(java.lang.String name)
Sets the material resource name. |
void |
setShininess(float shininess)
Sets the shininess factor. |
void |
setSpecularColor(org.openmali.vecmath2.Colorf specularColor)
Sets the specular color. |
void |
setUserData(java.lang.Object userData)
Stores user data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected org.openmali.vecmath2.Colorf ambientColor
protected org.openmali.vecmath2.Colorf diffuseColor
protected org.openmali.vecmath2.Colorf specularColor
protected float shininess
protected CalCoreMaterial.Map[] maps
protected java.lang.Object userData
| Constructor Detail |
|---|
public CalCoreMaterial()
| Method Detail |
|---|
public org.openmali.vecmath2.Colorf getAmbientColor()
public org.openmali.vecmath2.Colorf getDiffuseColor()
public int getMapCount()
public java.lang.String getMapFilename(int mapId)
mapId - The ID of the map.
public java.lang.Object getMapUserData(int mapId)
mapId - The ID of the map.
public float getShininess()
public org.openmali.vecmath2.Colorf getSpecularColor()
public java.lang.Object getUserData()
public void setMaps(CalCoreMaterial.Map[] maps)
public CalCoreMaterial.Map[] getMaps()
public void reserve(int mapCount)
mapCount - The number of maps that this core material instance should
be able to hold.public void setAmbientColor(org.openmali.vecmath2.Colorf ambientColor)
ambientColor - The ambient color that should be set.public void setDiffuseColor(org.openmali.vecmath2.Colorf diffuseColor)
diffuseColor - The diffuse color that should be set.
public void setMap(int mapId,
CalCoreMaterial.Map map)
mapId - The ID of the map.map - The map that should be set.
public void setMapUserData(int mapId,
java.lang.Object userData)
mapId - The ID of the map.userData - The user data that should be stored.public void setShininess(float shininess)
shininess - The shininess factor that should be set.public void setSpecularColor(org.openmali.vecmath2.Colorf specularColor)
specularColor - The specular color that should be set.public void setUserData(java.lang.Object userData)
userData - The user data that should be stored.public java.lang.String getName()
public void setName(java.lang.String name)
public void setBaseURL(java.net.URL baseURL)
public java.net.URL getBaseURL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||