|
|||||||||||
| 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.engine.light.csLight
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csLight(iPointer nPointer)
|
|
| Method Summary | |
void |
addAffectedLightingInfo(iLightingInfo li)
Add a mesh to this light. |
void |
calculateAttenuationVector(int atttype)
Calculate the attenuation vector for a given attenuation type. |
void |
calculateAttenuationVector(int atttype,
float radius)
Calculate the attenuation vector for a given attenuation type. |
void |
calculateAttenuationVector(int atttype,
float radius,
float brightness)
Calculate the attenuation vector for a given attenuation type. |
iCrossHalo |
createCrossHalo(float intensity,
float cross)
Create a cross halo for this light. |
iFlareHalo |
createFlareHalo()
Create a flare halo for this light. |
iNovaHalo |
createNovaHalo(int seed,
int num_spokes,
float roundness)
Create a nova halo for this light. |
int |
getAttenuation()
Return current attenuation mode. |
csVector3 |
getAttenuationVector()
Get attenuation vector csVector3(ant, linear, quadric);. |
float |
getBrightnessAtDistance(float d)
Get the brightness of a light at a given distance. |
csVector3 |
getCenter()
Get the position of this light. |
csColor |
getColor()
Get the color of this light. |
boolean |
getDistanceForBrightness(float brightness,
float distance)
Get the distance for a given light brightness. |
int |
getDynamicType()
Get the dynamic type of this light. |
csFlags |
getFlags()
Get flags for this light. |
float |
getInfluenceRadius()
Get the influence radius of the light. |
float |
getInfluenceRadiusSq()
Get the squared influence radius of the light. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
iLightCallback |
getLightCallback(int idx)
Get the specified light callback. |
int |
getLightCallbackCount()
Get the number of light callbacks. |
java.lang.String |
getLightID()
Get the id of this light. |
int |
getLightNumber()
Return a number that changes when the light changes (color, or position);. |
java.lang.String |
getName()
Return the name of the interface |
iLight |
getNext()
Get the next dynamic light in the list. @ TEMPORARY. @ Implemented in csLight::Light, and csIsoFakeLight. |
iSector |
getSector()
Get the sector for this light. |
int |
getVersion()
Return the version of the interface |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe()
|
iObject |
queryObject()
Get the iObject for this light. |
void |
removeAffectedLightingInfo(iLightingInfo li)
Remove a mesh from this light. |
void |
removeLightCallback(iLightCallback cb)
Remove a light callback. |
void |
setAttenuation(int a)
Set attenuation mode. |
void |
setAttenuationVector(csVector3 attenv)
Set attenuation vector csVector3(ant, linear, quadric); FIXME: examples. |
void |
setCenter(csVector3 pos)
Set the position of this light. |
void |
setColor(csColor col)
Set the color of this light. |
void |
setInfluenceRadius(float radius)
Override the influence radius. |
void |
setLightCallback(iLightCallback cb)
Set the light callback. |
void |
setup()
For a dynamic light you need to call this to do the actual lighting calculations. |
| 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, isNativePointerValidSafe, 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 csLight(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBasepublic java.lang.String getName()
iBase
getName in interface iBasegetName in class csBasepublic static void initSCF()
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe()
public void addAffectedLightingInfo(iLightingInfo li)
iLight
addAffectedLightingInfo in interface iLightli - iLight.addAffectedLightingInfo(crystalspace.jbind.interfaces.imesh.lighting.iLightingInfo)
public void calculateAttenuationVector(int atttype,
float radius,
float brightness)
iLight
calculateAttenuationVector in interface iLightatttype - radius - brightness - iLight.calculateAttenuationVector(int, float, float)
public void calculateAttenuationVector(int atttype,
float radius)
iLight
calculateAttenuationVector in interface iLightatttype - radius - iLight.calculateAttenuationVector(int, float)public void calculateAttenuationVector(int atttype)
iLight
calculateAttenuationVector in interface iLightatttype - iLight.calculateAttenuationVector(int)
public iCrossHalo createCrossHalo(float intensity,
float cross)
iLight
createCrossHalo in interface iLightintensity - cross -
iLight.createCrossHalo(float, float)public iFlareHalo createFlareHalo()
iLight
createFlareHalo in interface iLightiLight.createFlareHalo()
public iNovaHalo createNovaHalo(int seed,
int num_spokes,
float roundness)
iLight
createNovaHalo in interface iLightseed - num_spokes - roundness -
iLight.createNovaHalo(int, int, float)public int getAttenuation()
iLight
getAttenuation in interface iLightiLight.getAttenuation()public csVector3 getAttenuationVector()
iLight
getAttenuationVector in interface iLightiLight.getAttenuationVector()public float getBrightnessAtDistance(float d)
iLight
getBrightnessAtDistance in interface iLightd -
iLight.getBrightnessAtDistance(float)public csVector3 getCenter()
iLight
getCenter in interface iLightiLight.getCenter()public csColor getColor()
iLight
getColor in interface iLightiLight.getColor()
public boolean getDistanceForBrightness(float brightness,
float distance)
iLight
getDistanceForBrightness in interface iLightbrightness - distance -
iLight.getDistanceForBrightness(float, float)public int getDynamicType()
iLight
getDynamicType in interface iLightiLight.getDynamicType()public csFlags getFlags()
iLight
getFlags in interface iLightiLight.getFlags()public float getInfluenceRadius()
iLight
getInfluenceRadius in interface iLightiLight.getInfluenceRadius()public float getInfluenceRadiusSq()
iLight
getInfluenceRadiusSq in interface iLightiLight.getInfluenceRadiusSq()public iLightCallback getLightCallback(int idx)
iLight
getLightCallback in interface iLightidx -
iLight.getLightCallback(int)public int getLightCallbackCount()
iLight
getLightCallbackCount in interface iLightiLight.getLightCallbackCount()public java.lang.String getLightID()
iLight
getLightID in interface iLightiLight.getLightID()public int getLightNumber()
iLight
getLightNumber in interface iLightiLight.getLightNumber()public iLight getNext()
iLight
getNext in interface iLightiLight.getNext()public iSector getSector()
iLight
getSector in interface iLightiLight.getSector()public iObject queryObject()
iLight
queryObject in interface iLightiLight.queryObject()public void removeAffectedLightingInfo(iLightingInfo li)
iLight
removeAffectedLightingInfo in interface iLightli - iLight.removeAffectedLightingInfo(crystalspace.jbind.interfaces.imesh.lighting.iLightingInfo)public void removeLightCallback(iLightCallback cb)
iLight
removeLightCallback in interface iLightcb - iLight.removeLightCallback(crystalspace.jbind.interfaces.iengine.light.iLightCallback)public void setAttenuation(int a)
iLight
setAttenuation in interface iLighta - iLight.setAttenuation(int)public void setAttenuationVector(csVector3 attenv)
iLight
setAttenuationVector in interface iLightattenv - iLight.setAttenuationVector(crystalspace.jbind.impl.csgeom.vector3.csVector3)public void setCenter(csVector3 pos)
iLight
setCenter in interface iLightpos - iLight.setCenter(crystalspace.jbind.impl.csgeom.vector3.csVector3)public void setColor(csColor col)
iLight
setColor in interface iLightcol - iLight.setColor(crystalspace.jbind.impl.csutil.cscolor.csColor)public void setInfluenceRadius(float radius)
iLight
setInfluenceRadius in interface iLightradius - iLight.setInfluenceRadius(float)public void setLightCallback(iLightCallback cb)
iLight
setLightCallback in interface iLightcb - iLight.setLightCallback(crystalspace.jbind.interfaces.iengine.light.iLightCallback)public void setup()
iLight
setup in interface iLightiLight.setup()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||