|
|||||||||||
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 iBase
getVersion
in class csBase
iBase.getVersion()
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
iBase.getName()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
csNativeObject.isNativePointerValidSafe(long)
public iEffectDefinition getEffect()
iMaterial
getEffect
in interface iMaterial
iMaterial.getEffect()
public csRGBpixel getFlatColor()
iMaterial
getFlatColor
in interface iMaterial
iMaterial.getFlatColor()
public csRGBpixel getFlatColor(boolean useTextureMean)
iMaterial
getFlatColor
in interface iMaterial
useTextureMean
-
iMaterial.getFlatColor(boolean)
public float[] getReflection()
iMaterial
getReflection
in interface iMaterial
iMaterial.getReflection()
public iShader getShader(int type)
iMaterial
getShader
in interface iMaterial
type
-
iMaterial.getShader(int)
public iTextureHandle getTexture(int name)
iMaterial
getTexture
in interface iMaterial
name
-
iMaterial.getTexture(int)
public iTextureHandle getTexture()
iMaterial
getTexture
in interface iMaterial
iMaterial.getTexture()
public csTextureLayer getTextureLayer(int idx)
iMaterial
getTextureLayer
in interface iMaterial
idx
-
iMaterial.getTextureLayer(int)
public int getTextureLayerCount()
iMaterial
getTextureLayerCount
in interface iMaterial
iMaterial.getTextureLayerCount()
public void setEffect(iEffectDefinition ed)
iMaterial
setEffect
in interface iMaterial
ed
- iMaterial.setEffect(crystalspace.jbind.interfaces.ivideo.effects.efdef.iEffectDefinition)
public void setFlatColor(csRGBcolor col)
iMaterial
setFlatColor
in interface iMaterial
col
- iMaterial.setFlatColor(crystalspace.jbind.impl.csgfx.rgbpixel.csRGBcolor)
public void setReflection(float oDiffuse, float oAmbient, float oReflection)
iMaterial
setReflection
in interface iMaterial
oDiffuse
- oAmbient
- oReflection
- iMaterial.setReflection(float, float, float)
public void setShader(int type, iShader shader)
iMaterial
setShader
in interface iMaterial
type
- shader
- iMaterial.setShader(int, crystalspace.jbind.interfaces.ivideo.shader.shader.iShader)
public void addVariable(csShaderVariable variable)
iShaderVariableContext
addVariable
in interface iShaderVariableContext
variable
- iShaderVariableContext.addVariable(crystalspace.jbind.impl.csgfx.shadervar.csShaderVariable)
public int fillVariableList(csShaderVariableProxyList list)
iShaderVariableContext
fillVariableList
in interface iShaderVariableContext
list
-
iShaderVariableContext.fillVariableList(crystalspace.jbind.impl.csgfx.shadervar.csShaderVariableProxyList)
public csShaderVariable getVariable(int name)
iShaderVariableContext
getVariable
in interface iShaderVariableContext
name
-
iShaderVariableContext.getVariable(int)
public csShaderVariable getVariableAdd(int name)
iShaderVariableContext
getVariableAdd
in interface iShaderVariableContext
name
-
iShaderVariableContext.getVariableAdd(int)
public csShaderVariable getVariableRecursive(int name)
iShaderVariableContext
getVariableRecursive
in interface iShaderVariableContext
name
-
iShaderVariableContext.getVariableRecursive(int)
public csShaderVariable getVariableRecursiveAdd(int name)
iShaderVariableContext
getVariableRecursiveAdd
in interface iShaderVariableContext
name
-
iShaderVariableContext.getVariableRecursiveAdd(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |