Enum Class SceneInitFlag

java.lang.Object
java.lang.Enum<SceneInitFlag>
com.ijurnove.cpu3d.SceneInitFlag
All Implemented Interfaces:
Serializable, Comparable<SceneInitFlag>, Constable

public enum SceneInitFlag extends Enum<SceneInitFlag>
SceneInitFlag values are used as keys in SceneInitFlags. Each flag has a corresponding value in each SceneInitFlags object.
  • Enum Constant Details

    • IMAGE_SIZE_ACROSS

      public static final SceneInitFlag IMAGE_SIZE_ACROSS
      Sets the width of the image returned by Scene.render().
      Default value is the width of the screen.
    • IMAGE_SIZE_UP

      public static final SceneInitFlag IMAGE_SIZE_UP
      Sets the height of the image returned by Scene.render().
      Default value is the height of the screen.
    • RESOLUTION_MULTIPLIER_ACROSS

      public static final SceneInitFlag RESOLUTION_MULTIPLIER_ACROSS
      Modifies the width of the image being rendered. The image is automatically upscaled back to the width and height given by IMAGE_SIZE_ACROSS and IMAGE_SIZE_UP.
      Default value is 1.
    • RESOLUTION_MULTIPLIER_UP

      public static final SceneInitFlag RESOLUTION_MULTIPLIER_UP
      Modifies the height of the image being rendered. The image is automatically upscaled back to the width and height given by IMAGE_SIZE_ACROSS and IMAGE_SIZE_UP.
      Default value is 1.
    • SHADOW_RESOLUTION_ACROSS

      public static final SceneInitFlag SHADOW_RESOLUTION_ACROSS
      Modifies the shadow rendering width. Higher values will result in sharper shadows, but longer rendering times.
      Default value is 2048.
    • SHADOW_RESOLUTION_UP

      public static final SceneInitFlag SHADOW_RESOLUTION_UP
      Modifies the shadow rendering height. Higher values will result in sharper shadows, but longer rendering times.
      Default value is 2048.
    • THREADS_ACROSS

      public static final SceneInitFlag THREADS_ACROSS
      When a Scene is being rendered, the screen is split into segments vertically and horizontally. Each segment is rendered by a different thread. THREADS_ACROSS controls the number of horizontal divisions.
      Default value is 3.
    • THREADS_UP

      public static final SceneInitFlag THREADS_UP
      When a Scene is being rendered, the screen is split into segments vertically and horizontally. Each segment is rendered by a different thread. THREADS_UP controls the number of vertical divisions.
      Default value is 3.
  • Method Details

    • values

      public static SceneInitFlag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SceneInitFlag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null