|
|||||||||||
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 iBase
getVersion
in class csBase
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
public 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 iLight
li
- iLight.addAffectedLightingInfo(crystalspace.jbind.interfaces.imesh.lighting.iLightingInfo)
public void calculateAttenuationVector(int atttype, float radius, float brightness)
iLight
calculateAttenuationVector
in interface iLight
atttype
- radius
- brightness
- iLight.calculateAttenuationVector(int, float, float)
public void calculateAttenuationVector(int atttype, float radius)
iLight
calculateAttenuationVector
in interface iLight
atttype
- radius
- iLight.calculateAttenuationVector(int, float)
public void calculateAttenuationVector(int atttype)
iLight
calculateAttenuationVector
in interface iLight
atttype
- iLight.calculateAttenuationVector(int)
public iCrossHalo createCrossHalo(float intensity, float cross)
iLight
createCrossHalo
in interface iLight
intensity
- cross
-
iLight.createCrossHalo(float, float)
public iFlareHalo createFlareHalo()
iLight
createFlareHalo
in interface iLight
iLight.createFlareHalo()
public iNovaHalo createNovaHalo(int seed, int num_spokes, float roundness)
iLight
createNovaHalo
in interface iLight
seed
- num_spokes
- roundness
-
iLight.createNovaHalo(int, int, float)
public int getAttenuation()
iLight
getAttenuation
in interface iLight
iLight.getAttenuation()
public csVector3 getAttenuationVector()
iLight
getAttenuationVector
in interface iLight
iLight.getAttenuationVector()
public float getBrightnessAtDistance(float d)
iLight
getBrightnessAtDistance
in interface iLight
d
-
iLight.getBrightnessAtDistance(float)
public csVector3 getCenter()
iLight
getCenter
in interface iLight
iLight.getCenter()
public csColor getColor()
iLight
getColor
in interface iLight
iLight.getColor()
public boolean getDistanceForBrightness(float brightness, float distance)
iLight
getDistanceForBrightness
in interface iLight
brightness
- distance
-
iLight.getDistanceForBrightness(float, float)
public int getDynamicType()
iLight
getDynamicType
in interface iLight
iLight.getDynamicType()
public csFlags getFlags()
iLight
getFlags
in interface iLight
iLight.getFlags()
public float getInfluenceRadius()
iLight
getInfluenceRadius
in interface iLight
iLight.getInfluenceRadius()
public float getInfluenceRadiusSq()
iLight
getInfluenceRadiusSq
in interface iLight
iLight.getInfluenceRadiusSq()
public iLightCallback getLightCallback(int idx)
iLight
getLightCallback
in interface iLight
idx
-
iLight.getLightCallback(int)
public int getLightCallbackCount()
iLight
getLightCallbackCount
in interface iLight
iLight.getLightCallbackCount()
public java.lang.String getLightID()
iLight
getLightID
in interface iLight
iLight.getLightID()
public int getLightNumber()
iLight
getLightNumber
in interface iLight
iLight.getLightNumber()
public iLight getNext()
iLight
getNext
in interface iLight
iLight.getNext()
public iSector getSector()
iLight
getSector
in interface iLight
iLight.getSector()
public iObject queryObject()
iLight
queryObject
in interface iLight
iLight.queryObject()
public void removeAffectedLightingInfo(iLightingInfo li)
iLight
removeAffectedLightingInfo
in interface iLight
li
- iLight.removeAffectedLightingInfo(crystalspace.jbind.interfaces.imesh.lighting.iLightingInfo)
public void removeLightCallback(iLightCallback cb)
iLight
removeLightCallback
in interface iLight
cb
- iLight.removeLightCallback(crystalspace.jbind.interfaces.iengine.light.iLightCallback)
public void setAttenuation(int a)
iLight
setAttenuation
in interface iLight
a
- iLight.setAttenuation(int)
public void setAttenuationVector(csVector3 attenv)
iLight
setAttenuationVector
in interface iLight
attenv
- iLight.setAttenuationVector(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void setCenter(csVector3 pos)
iLight
setCenter
in interface iLight
pos
- iLight.setCenter(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void setColor(csColor col)
iLight
setColor
in interface iLight
col
- iLight.setColor(crystalspace.jbind.impl.csutil.cscolor.csColor)
public void setInfluenceRadius(float radius)
iLight
setInfluenceRadius
in interface iLight
radius
- iLight.setInfluenceRadius(float)
public void setLightCallback(iLightCallback cb)
iLight
setLightCallback
in interface iLight
cb
- iLight.setLightCallback(crystalspace.jbind.interfaces.iengine.light.iLightCallback)
public void setup()
iLight
setup
in interface iLight
iLight.setup()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |