Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.rico.engine.effect.light
Interface LightIface

All Known Subinterfaces:
  DirectionalLightIface, PositionalLightIface, SpotLightIface

All Known Implementing Classes:
  AbstractLight, DirectionalLight, PositionalLight, ShaderSpotLight, SpotLight

    public interface LightIface

This interface defines the neccessary methods for every light

Author:
  Frank Bruns

Method Summary
`void` | `bind(javax.media.opengl.GL gl)` Starts using the light.
`void` | `destroy()` Destroys the light.
`void` | `release(javax.media.opengl.GL gl)` Stops using the light.
`void` | `setEnabled(boolean enable)` Enables or disables the light source

Method Detail

### setEnabled

    void setEnabled(boolean enable)

  Enables or disables the light source

  Parameters:
    `enable` - true --> enable light, false --> disable light

### bind

    void bind(javax.media.opengl.GL gl)

  Starts using the light. All objects that are rendered after the call to this method, will be affected by the light, if no special treatment was performed on those objects.

  Parameters:
    `gl` -

### release

    void release(javax.media.opengl.GL gl)

  Stops using the light. Objects that are rendered after a call to this method won't be affected by the light.

  Parameters:
    `gl` -

### destroy

    void destroy()

  Destroys the light.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD