Class LwjglCanvas

All Implemented Interfaces:
JmeCanvasContext, JmeContext, Runnable

public class LwjglCanvas extends LwjglWindow implements JmeCanvasContext, Runnable
Class LwjglCanvas that integrates LWJGLX which allows using AWT-Swing components.

If LwjglCanvas throws an exception due to configuration problems, we can debug as follows:
- In AppSettings, set this property to enable a debug that displays the effective data for the context.


 ....
  AppSettings settings = new AppSettings(true);
  settings.putBoolean("GLDataEffectiveDebug", true);
 ...
 

NOTE: If running LwjglCanvas on older machines, the SRGB | Gamma Correction option will raise an exception, so it should be disabled.


 ....
  AppSettings settings = new AppSettings(true);
  settings.setGammaCorrection(false);
 ...