Search in sources :

Example 1 with HeadlessRenderingSubsystemFactory

use of org.terasology.engine.core.subsystem.headless.renderer.HeadlessRenderingSubsystemFactory 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.core.subsystem.headless.renderer.HeadlessRenderingSubsystemFactory) HeadlessDisplayDevice(org.terasology.engine.core.subsystem.headless.device.HeadlessDisplayDevice) HeadlessCanvasRenderer(org.terasology.engine.core.subsystem.headless.renderer.HeadlessCanvasRenderer)

Aggregations

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