Class JoGLLightManager

    • Constructor Detail

      • JoGLLightManager

        public JoGLLightManager​(JoGLDrawingTools drawingTools)
        Default constructor.
        Parameters:
        drawingTools - the drawing tools.
    • Method Detail

      • getLightNumber

        public int getLightNumber()
        Description copied from interface: LightManager
        Return the number of available light.
        Specified by:
        getLightNumber in interface LightManager
        Returns:
        the number of available light.
      • getLight

        public Light getLight​(int i)
        Description copied from interface: LightManager
        Return the i-th light. null is returned if i is not a valid index.
        Specified by:
        getLight in interface LightManager
        Parameters:
        i - the given index.
        Returns:
        the i-th light.
      • setLightningEnable

        public void setLightningEnable​(boolean isLightningEnable)
        Description copied from interface: LightManager
        Set the lightning status. Lighting is initially disabled. When it is enabled, light sources that are enabled contribute to the lighting calculation.
        Specified by:
        setLightningEnable in interface LightManager
        Parameters:
        isLightningEnable - the new lightning status.
      • isLightningEnable

        public boolean isLightningEnable()
        Description copied from interface: LightManager
        Return the lightning status.
        Specified by:
        isLightningEnable in interface LightManager
        Returns:
        the lightning status.
      • reload

        public void reload()
        Reload light.