Search in sources :

Example 56 with Screen

use of com.b3dgs.lionengine.graphic.Screen in project lionengine by b3dgs.

the class FactoryGraphicAwt method createScreen.

/*
     * FactoryGraphic
     */
@Override
public Screen createScreen(Config config) {
    Check.notNull(config);
    final Screen screen;
    if (config.isWindowed()) {
        screen = new ScreenWindowedAwt(config);
    } else {
        screen = new ScreenFullAwt(config);
    }
    return screen;
}
Also used : Screen(com.b3dgs.lionengine.graphic.Screen)

Aggregations

Screen (com.b3dgs.lionengine.graphic.Screen)56 Config (com.b3dgs.lionengine.Config)47 Resolution (com.b3dgs.lionengine.Resolution)45 ScreenMock (com.b3dgs.lionengine.graphic.ScreenMock)45 Test (org.junit.jupiter.api.Test)26 Test (org.junit.Test)23 Semaphore (java.util.concurrent.Semaphore)4 AtomicReference (java.util.concurrent.atomic.AtomicReference)4 InputDeviceKeyListener (com.b3dgs.lionengine.InputDeviceKeyListener)3 ScreenListener (com.b3dgs.lionengine.graphic.ScreenListener)3 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)3 FactoryGraphicMock (com.b3dgs.lionengine.graphic.FactoryGraphicMock)2 Context (com.b3dgs.lionengine.Context)1 InputDevice (com.b3dgs.lionengine.InputDevice)1