// get our framework
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;
example._mouseManager = new JoglNewtMouseManager(canvas);
example._physicalLayer = new PhysicalLayer(new JoglNewtKeyboardWrapper(canvas), new JoglNewtMouseWrapper(
canvas, example._mouseManager), DummyControllerWrapper.INSTANCE, new JoglNewtFocusWrapper(canvas));
TextureRendererFactory.INSTANCE.setProvider(new JoglTextureRendererProvider());
}
example._logicalLayer.registerInput(example._canvas, example._physicalLayer);