Interface LightManager

All Known Implementing Classes:
JoGLLightManager

public interface LightManager
Light manager interface.
Author:
Pierre Lando
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    The default lightning status.
  • Method Summary

    Modifier and Type
    Method
    Description
    getLight(int i)
    Return the i-th light.
    int
    Return the number of available light.
    boolean
    Return the lightning status.
    void
    setLightningEnable(boolean isLightningEnable)
    Set the lightning status.
  • Field Details

    • DEFAULT_LIGHTNING_STATUS

      static final boolean DEFAULT_LIGHTNING_STATUS
      The default lightning status.
      See Also:
  • Method Details

    • getLightNumber

      int getLightNumber()
      Return the number of available light.
      Returns:
      the number of available light.
    • getLight

      Light getLight(int i)
      Return the i-th light. null is returned if i is not a valid index.
      Parameters:
      i - the given index.
      Returns:
      the i-th light.
    • setLightningEnable

      void setLightningEnable(boolean isLightningEnable)
      Set the lightning status. Lighting is initially disabled. When it is enabled, light sources that are enabled contribute to the lighting calculation.
      Parameters:
      isLightningEnable - the new lightning status.
    • isLightningEnable

      boolean isLightningEnable()
      Return the lightning status.
      Returns:
      the lightning status.