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());
}
Aggregations