Skip to content

Commit 7442eda

Browse files
author
wil
committed
update|javadoc
1 parent 3ee74be commit 7442eda

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

jme3-core/src/main/java/com/jme3/system/AppSettings.java

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,32 +1510,24 @@ public void setDisplay(int mon) {
15101510
}
15111511

15121512
/**
1513-
* Sets the native platform to be used to create the GL context.
1514-
*
1513+
* Sets the preferred native platform for creating the GL context on Linux distributions.
15151514
* <p>
1516-
* This only affects Linux distributions or derivatives that use a Wayland session in conjunction
1517-
* with X11 via the XWayland bridge, which enables or disables GLX for window positioning and/or
1518-
* icon configuration.
1519-
* </p>
1515+
* This setting is relevant for Linux distributions or derivatives that utilize a Wayland session alongside an X11 via the XWayland bridge.
1516+
* Enabling this option allows the use of GLX for window positioning and/or icon configuration.
15201517
*
1521-
* <p>
1522-
* <strong>NOTE:</strong> Note that disabling this option uses GLX (native X11) instead of EGL (native WL).
1523-
* </p>
1524-
*
1525-
* @param nplaf true if you want to enable GLX, otherwise false when using EGL (native)
1518+
* @param preferred true to prefer GLX (native X11) for the GL context, false to prefer EGL (native Wayland).
15261519
*/
1527-
public void setX11PlatformPreferred(boolean nplaf) {
1528-
put("X11PlatformPreferred", nplaf);
1520+
public void setX11PlatformPreferred(boolean preferred) {
1521+
put("X11PlatformPreferred", preferred);
15291522
}
15301523

15311524
/**
1532-
* Gets what type of platform is being used.
1533-
*
1525+
* Determines which native platform is preferred for GL context creation on Linux distributions.
15341526
* <p>
1535-
* Only valid on Linux distributions or derivatives that support Wayland, where it indicates whether GLX or EGL is enabled.
1536-
* </p>
1537-
*
1538-
* @return returns true if GLX is enabled, otherwise false if used in EGL (native)
1527+
* This setting is only valid on Linux distributions or derivatives that support Wayland,
1528+
* and it indicates whether GLX (native X11) or EGL (native Wayland) is enabled for the GL context.
1529+
*
1530+
* @return true if GLX is preferred, otherwise false if EGL is preferred (native Wayland).
15391531
*/
15401532
public boolean isX11PlatformPreferred() {
15411533
return getBoolean("X11PlatformPreferred");

0 commit comments

Comments
 (0)