crystalspace.jbind.interfaces.iengine.light
Interface iLightCallback

All Superinterfaces:
iJPointer
All Known Implementing Classes:
csLightCallback

public interface iLightCallback
extends iJPointer

Set a callback which is called when this light color is changed.

Author:
Quentin Anciaux

Method Summary
 void onColorChange(iLight light, csColor newcolor)
          Light color will be changed.
 void onDestroy(iLight light)
          Light will be destroyed.
 void onPositionChange(iLight light, csVector3 newpos)
          Light position will be changed.
 void onRadiusChange(iLight light, float newradius)
          Radius will be changed.
 void onSectorChange(iLight light, iSector newsector)
          Sector will be changed.
 

Method Detail

onColorChange

public void onColorChange(iLight light,
                          csColor newcolor)
Light color will be changed.

Parameters:
light -
newcolor -

onPositionChange

public void onPositionChange(iLight light,
                             csVector3 newpos)
Light position will be changed.

Parameters:
light -
newpos -

onSectorChange

public void onSectorChange(iLight light,
                           iSector newsector)
Sector will be changed.

Parameters:
light -
newsector -

onRadiusChange

public void onRadiusChange(iLight light,
                           float newradius)
Radius will be changed.

Parameters:
light -
newradius -

onDestroy

public void onDestroy(iLight light)
Light will be destroyed.

Parameters:
light -