Class RenderConfig

java.lang.Object
dev.prozilla.pine.core.state.config.RenderConfig

public class RenderConfig extends Object
Manages configuration options related to rendering.
  • Field Details

    • FALLBACK_RENDER_COLOR

      public static final ConfigKey<Color> FALLBACK_RENDER_COLOR
    • ENABLE_BLEND

      public static final ConfigKey<Boolean> ENABLE_BLEND
    • ENABLE_DEPTH_TEST

      public static final ConfigKey<Boolean> ENABLE_DEPTH_TEST
    • RENDER_MODE

      public static final ConfigKey<RenderMode> RENDER_MODE
    • SNAP_PIXELS

      public static final ConfigKey<Boolean> SNAP_PIXELS
    • SNAP_TEXT

      public static final ConfigKey<Boolean> SNAP_TEXT
    • fallbackRenderColor

      public final ObjectConfigOption<Color> fallbackRenderColor
      Used as the render color for objects when no color is passed to the renderer. Defaults to white.
    • enableBlend

      public final BooleanConfigOption enableBlend
      Enables blending. Defaults to true.
    • enableDepthTest

      public final BooleanConfigOption enableDepthTest
      Enables depth testing. Defaults to true.
    • renderMode

      public final ObjectConfigOption<RenderMode> renderMode
      Determines how vertices appear on the screen. Defaults to RenderMode.NORMAL.
    • snapPixels

      public final BooleanConfigOption snapPixels
      Enables snapping of pixels to whole numbers. Defaults to false.
    • snapText

      public final BooleanConfigOption snapText
      Enables the snapping of pixels that make up text. Defaults to true.
  • Constructor Details

    • RenderConfig

      public RenderConfig()