Class Settings.GraphicsSettings
java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.GraphicsSettings
- Enclosing class:
Settings
Graphics settings of Gaia Sky.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionint[]doublebooleanfinal double[]This controls the dynamic resolution levels available as back buffer scales.doubleint[]Resolution of the textures generated procedurally.Graphics quality includes texture size and the fidelity of some effects.booleanint[]booleanWhether to output to the main display.booleanUse the sRGB color space as a frame buffer format.booleanFields inherited from class SettingsObject
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()clone()voiddispose()intGet the height of the surface the application renders to.intGet the width of the surface the application renders to.voidEvent notification call.voidresize(int w, int h) protected voidvoidsetQuality(String qualityString) protected voidvoidUpdates the back-buffer resolution array using the current resolution and back-buffer scale setting.Methods inherited from class SettingsObject
getRoot, isEnabled, setParent
-
Field Details
-
dynamicResolutionScale
public final double[] dynamicResolutionScaleThis controls the dynamic resolution levels available as back buffer scales. Add more items to add more levels. -
quality
Graphics quality includes texture size and the fidelity of some effects. -
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 screenOutputWhether to output to the main display. -
useSRGB
public boolean useSRGBUse the sRGB color space as a frame buffer format. Only supported by OpenGL 3.2 and above. If this is activated, the internal formatGL21.GL_SRGB8_ALPHA8is used only when safe graphics mode is not active. -
proceduralGenerationResolution
public int[] proceduralGenerationResolutionResolution 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
-
updateBackBufferResolution
public void updateBackBufferResolution()Updates the back-buffer resolution array using the current resolution and back-buffer scale setting. -
setQuality
-
getApplicationWidth
public int getApplicationWidth()Get the width of the surface the application renders to.- Returns:
- The width of the application surface.
-
getApplicationHeight
public int getApplicationHeight()Get the height of the surface the application renders to.- Returns:
- The height of the application surface.
-
resize
public void resize(int w, int h) -
notify
-
clone
- Overrides:
clonein classSettingsObject
-
setParentRecursive
- Specified by:
setParentRecursivein classSettingsObject
-
setupListeners
protected void setupListeners()- Specified by:
setupListenersin classSettingsObject
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
apply
public void apply()
-