Package gaiasky.util

Class Settings.GraphicsSettings

java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.GraphicsSettings
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, Cloneable
Enclosing class:
Settings

public static class Settings.GraphicsSettings extends SettingsObject implements IObserver
  • Field Details

    • dynamicResolutionScale

      public final double[] dynamicResolutionScale
      This controls the dynamic resolution levels available as back buffer scales. Add more items to add more levels.
    • quality

      public Settings.GraphicsQuality quality
      Graphics texture quality.
    • resolution

      public int[] resolution
    • resizable

      public boolean resizable
    • fullScreen

    • vsync

      public boolean vsync
    • fpsLimit

      public double fpsLimit
    • backBufferScale

      public double backBufferScale
    • backBufferResolution

      public int[] backBufferResolution
    • dynamicResolution

      public boolean dynamicResolution
    • screenOutput

      public boolean screenOutput
      Whether to output to the main display.
    • useSRGB

      public boolean useSRGB
      Use the sRGB color space as a frame buffer format. Only supported by OpenGL 3.2 and above. If this is activated, the internal format GL21.GL_SRGB8_ALPHA8 is used only when safe graphics mode is not active.
    • proceduralGenerationResolution

      public int[] proceduralGenerationResolution
      Resolution of the textures generated procedurally. These are the elevation, moisture, diffuse, specular and normal textures procedurally generated from noise algorithms.
  • Constructor Details

    • GraphicsSettings

      public GraphicsSettings()
  • Method Details

    • setQuality

      public void setQuality(String qualityString)
    • getScreenWidth

      public int getScreenWidth()
    • getScreenHeight

      public int getScreenHeight()
    • resize

      public void resize(int w, int h)
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.
    • clone

      public Settings.GraphicsSettings clone()
      Overrides:
      clone in class SettingsObject
    • setParentRecursive

      protected void setParentRecursive(SettingsObject s)
      Specified by:
      setParentRecursive in class SettingsObject
    • setupListeners

      protected void setupListeners()
      Specified by:
      setupListeners in class SettingsObject
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
    • apply

      public void apply()