|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents a material as seen from the engine view. You need to register this to the texture manager to get a handle to an internal compiled material. This interface plays same role related to iMaterialHandle as iImage plays related to iTextureHandle.
Method Summary | |
iEffectDefinition |
getEffect()
Get the effect from the material. |
csRGBpixel |
getFlatColor()
Get the flat color. |
csRGBpixel |
getFlatColor(boolean useTextureMean)
Get the flat color. |
float[] |
getReflection()
Get light reflection parameters for this material. |
iShader |
getShader(int type)
Get shader associated with a shader type. |
iTextureHandle |
getTexture()
Get the base texture from the material. |
iTextureHandle |
getTexture(int name)
Get a texture from the material. |
csTextureLayer |
getTextureLayer(int idx)
Get a texture layer. |
int |
getTextureLayerCount()
Get the number of texture layers. |
void |
setEffect(iEffectDefinition ed)
Set the material's effect. |
void |
setFlatColor(csRGBcolor col)
Set the flat shading color. |
void |
setReflection(float oDiffuse,
float oAmbient,
float oReflection)
Set the reflection parameters. |
void |
setShader(int type,
iShader shader)
Associate a shader with a shader type. |
Methods inherited from interface crystalspace.jbind.interfaces.ivideo.shader.shader.iShaderVariableContext |
addVariable, fillVariableList, getVariable, getVariableAdd, getVariableRecursive, getVariableRecursiveAdd |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public iEffectDefinition getEffect()
public csRGBpixel getFlatColor()
public csRGBpixel getFlatColor(boolean useTextureMean)
useTextureMean
-
public float[] getReflection()
public iShader getShader(int type)
type
-
public iTextureHandle getTexture(int name)
name
-
public iTextureHandle getTexture()
public csTextureLayer getTextureLayer(int idx)
idx
-
public int getTextureLayerCount()
public void setEffect(iEffectDefinition ed)
ed
- public void setFlatColor(csRGBcolor col)
col
- public void setReflection(float oDiffuse, float oAmbient, float oReflection)
oDiffuse
- oAmbient
- oReflection
- public void setShader(int type, iShader shader)
type
- shader
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |