Search in sources :

Example 1 with DisplayResolutionDependentFbo

use of org.terasology.engine.rendering.opengl.fbms.DisplayResolutionDependentFbo in project Terasology by MovingBlocks.

the class WorldRendererImpl method initRenderingSupport.

private void initRenderingSupport() {
    ScreenGrabber screenGrabber = new ScreenGrabber(context);
    context.put(ScreenGrabber.class, screenGrabber);
    displayResolutionDependentFbo = new DisplayResolutionDependentFbo(context.get(Config.class).getRendering(), screenGrabber, context.get(DisplayDevice.class));
    context.put(DisplayResolutionDependentFbo.class, displayResolutionDependentFbo);
    shaderManager.initShaders();
    context.put(WorldRenderer.class, this);
    context.put(RenderQueuesHelper.class, renderQueues);
    context.put(RenderableWorld.class, renderableWorld);
}
Also used : DisplayResolutionDependentFbo(org.terasology.engine.rendering.opengl.fbms.DisplayResolutionDependentFbo) RenderingConfig(org.terasology.engine.config.RenderingConfig) Config(org.terasology.engine.config.Config) PlayerConfig(org.terasology.engine.config.PlayerConfig) ScreenGrabber(org.terasology.engine.rendering.opengl.ScreenGrabber)

Aggregations

Config (org.terasology.engine.config.Config)1 PlayerConfig (org.terasology.engine.config.PlayerConfig)1 RenderingConfig (org.terasology.engine.config.RenderingConfig)1 ScreenGrabber (org.terasology.engine.rendering.opengl.ScreenGrabber)1 DisplayResolutionDependentFbo (org.terasology.engine.rendering.opengl.fbms.DisplayResolutionDependentFbo)1