Search in sources :

Example 1 with HeadlessDisplayDevice

use of org.terasology.engine.subsystem.headless.device.HeadlessDisplayDevice in project Terasology by MovingBlocks.

the class HeadlessGraphics method postInitialise.

@Override
public void postInitialise(Context context) {
    context.put(RenderingSubsystemFactory.class, new HeadlessRenderingSubsystemFactory());
    HeadlessDisplayDevice headlessDisplay = new HeadlessDisplayDevice();
    context.put(DisplayDevice.class, headlessDisplay);
    initHeadless(context);
    context.put(CanvasRenderer.class, new HeadlessCanvasRenderer());
}
Also used : HeadlessRenderingSubsystemFactory(org.terasology.engine.subsystem.headless.renderer.HeadlessRenderingSubsystemFactory) HeadlessDisplayDevice(org.terasology.engine.subsystem.headless.device.HeadlessDisplayDevice) HeadlessCanvasRenderer(org.terasology.engine.subsystem.headless.renderer.HeadlessCanvasRenderer)

Aggregations

HeadlessDisplayDevice (org.terasology.engine.subsystem.headless.device.HeadlessDisplayDevice)1 HeadlessCanvasRenderer (org.terasology.engine.subsystem.headless.renderer.HeadlessCanvasRenderer)1 HeadlessRenderingSubsystemFactory (org.terasology.engine.subsystem.headless.renderer.HeadlessRenderingSubsystemFactory)1