|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.video.material.csMaterial
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csMaterial(iPointer nPointer)
|
|
| Method Summary | |
void |
addVariable(csShaderVariable variable)
Add a variable to this context. |
int |
fillVariableList(csShaderVariableProxyList list)
Fill a csShaderVariableList. |
iEffectDefinition |
getEffect()
Get the effect from the material. |
csRGBpixel |
getFlatColor()
Get the flat color. |
csRGBpixel |
getFlatColor(boolean useTextureMean)
Get the flat color. |
java.lang.String |
getName()
Return the name of the interface |
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. |
csShaderVariable |
getVariable(int name)
Get a named variable from this context. |
csShaderVariable |
getVariableAdd(int name)
Like GetVariable();, but it also adds it if doesn't exist already. |
csShaderVariable |
getVariableRecursive(int name)
Get a named variable from this context, and any context above/outer. |
csShaderVariable |
getVariableRecursiveAdd(int name)
Like GetVariable();, but it also adds it if doesn't exist already. |
int |
getVersion()
Return the version of the interface |
protected boolean |
isNativePointerValidSafe(long pointer)
|
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 class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csMaterial(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBaseiBase.getVersion()public java.lang.String getName()
iBase
getName in interface iBasegetName in class csBaseiBase.getName()protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)public iEffectDefinition getEffect()
iMaterial
getEffect in interface iMaterialiMaterial.getEffect()public csRGBpixel getFlatColor()
iMaterial
getFlatColor in interface iMaterialiMaterial.getFlatColor()public csRGBpixel getFlatColor(boolean useTextureMean)
iMaterial
getFlatColor in interface iMaterialuseTextureMean -
iMaterial.getFlatColor(boolean)public float[] getReflection()
iMaterial
getReflection in interface iMaterialiMaterial.getReflection()public iShader getShader(int type)
iMaterial
getShader in interface iMaterialtype -
iMaterial.getShader(int)public iTextureHandle getTexture(int name)
iMaterial
getTexture in interface iMaterialname -
iMaterial.getTexture(int)public iTextureHandle getTexture()
iMaterial
getTexture in interface iMaterialiMaterial.getTexture()public csTextureLayer getTextureLayer(int idx)
iMaterial
getTextureLayer in interface iMaterialidx -
iMaterial.getTextureLayer(int)public int getTextureLayerCount()
iMaterial
getTextureLayerCount in interface iMaterialiMaterial.getTextureLayerCount()public void setEffect(iEffectDefinition ed)
iMaterial
setEffect in interface iMaterialed - iMaterial.setEffect(crystalspace.jbind.interfaces.ivideo.effects.efdef.iEffectDefinition)public void setFlatColor(csRGBcolor col)
iMaterial
setFlatColor in interface iMaterialcol - iMaterial.setFlatColor(crystalspace.jbind.impl.csgfx.rgbpixel.csRGBcolor)
public void setReflection(float oDiffuse,
float oAmbient,
float oReflection)
iMaterial
setReflection in interface iMaterialoDiffuse - oAmbient - oReflection - iMaterial.setReflection(float, float, float)
public void setShader(int type,
iShader shader)
iMaterial
setShader in interface iMaterialtype - shader - iMaterial.setShader(int, crystalspace.jbind.interfaces.ivideo.shader.shader.iShader)public void addVariable(csShaderVariable variable)
iShaderVariableContext
addVariable in interface iShaderVariableContextvariable - iShaderVariableContext.addVariable(crystalspace.jbind.impl.csgfx.shadervar.csShaderVariable)public int fillVariableList(csShaderVariableProxyList list)
iShaderVariableContext
fillVariableList in interface iShaderVariableContextlist -
iShaderVariableContext.fillVariableList(crystalspace.jbind.impl.csgfx.shadervar.csShaderVariableProxyList)public csShaderVariable getVariable(int name)
iShaderVariableContext
getVariable in interface iShaderVariableContextname -
iShaderVariableContext.getVariable(int)public csShaderVariable getVariableAdd(int name)
iShaderVariableContext
getVariableAdd in interface iShaderVariableContextname -
iShaderVariableContext.getVariableAdd(int)public csShaderVariable getVariableRecursive(int name)
iShaderVariableContext
getVariableRecursive in interface iShaderVariableContextname -
iShaderVariableContext.getVariableRecursive(int)public csShaderVariable getVariableRecursiveAdd(int name)
iShaderVariableContext
getVariableRecursiveAdd in interface iShaderVariableContextname -
iShaderVariableContext.getVariableRecursiveAdd(int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||