if (prefs.getRenderer().startsWith("LWJGL")) {
final LwjglCanvasRenderer canvasRenderer = new LwjglCanvasRenderer(example);
example._canvas = new LwjglCanvas(settings, canvasRenderer);
example._physicalLayer = new PhysicalLayer(new LwjglKeyboardWrapper(), new LwjglMouseWrapper(),
new LwjglControllerWrapper(), (LwjglCanvas) example._canvas);
example._mouseManager = new LwjglMouseManager();
TextureRendererFactory.INSTANCE.setProvider(new LwjglTextureRendererProvider());
} else if (prefs.getRenderer().startsWith("JOGL")) {
final JoglCanvasRenderer canvasRenderer = new JoglCanvasRenderer(example);
example._canvas = new JoglNewtWindow(canvasRenderer, settings);
final JoglNewtWindow canvas = (JoglNewtWindow) example._canvas;