Package jme3utilities
Class DsUtils
java.lang.Object
jme3utilities.DsUtils
Utility methods that relate to display settings.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdescribeDimensions(int width, int height) Describe the specified display dimensions.static StringdescribeMsaaFactor(int factor) Describe an MSAA sampling factor.static DisplayModeReturn the default monitor's current display mode.static booleanTest whether jme3-lwjgl3 is in the classpath.static List<DisplayMode>Enumerate the default monitor's available display modes.static int[]parseDimensions(String description) Parse the specified text to obtain display dimensions.
-
Field Details
-
logger
message logger for this class
-
-
Method Details
-
describeDimensions
Describe the specified display dimensions.- Parameters:
width- width in pixels (>0)height- height in pixels (>0)- Returns:
- a textual description (not null, not empty)
-
describeMsaaFactor
Describe an MSAA sampling factor.- Parameters:
factor- samples per pixel- Returns:
- a textual description (not null, not empty)
-
displayMode
Return the default monitor's current display mode.- Returns:
- a new instance (not null)
-
hasLwjglVersion3
public static boolean hasLwjglVersion3()Test whether jme3-lwjgl3 is in the classpath.- Returns:
- true if present, otherwise false
-
listDisplayModes
Enumerate the default monitor's available display modes.- Returns:
- a new list of modes (not null)
-
parseDimensions
Parse the specified text to obtain display dimensions.- Parameters:
description- the text to parse (not null, not empty)- Returns:
- a new array containing the width and height, or null for a syntax error
-