Enum LightManager.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LightManager.Type>
    Enclosing class:
    LightManager

    public static enum LightManager.Type
    extends java.lang.Enum<LightManager.Type>
    Denotes the type of the light being created.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DIRECTIONAL
      Directional light, emits light in a given direction.
      FOCUSED_SPOT
      Physically correct spot light.
      POINT
      Point light, emits light from a position, in all directions.
      SPOT
      Spot light with coupling of outer cone and illumination disabled.
      SUN
      Directional light that also draws a sun's disk in the sky.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LightManager.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LightManager.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SUN

        public static final LightManager.Type SUN
        Directional light that also draws a sun's disk in the sky.
      • DIRECTIONAL

        public static final LightManager.Type DIRECTIONAL
        Directional light, emits light in a given direction.
      • POINT

        public static final LightManager.Type POINT
        Point light, emits light from a position, in all directions.
      • FOCUSED_SPOT

        public static final LightManager.Type FOCUSED_SPOT
        Physically correct spot light.
      • SPOT

        public static final LightManager.Type SPOT
        Spot light with coupling of outer cone and illumination disabled.
    • Method Detail

      • values

        public static LightManager.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LightManager.Type c : LightManager.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LightManager.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null