use of org.terasology.engine.rendering.opengl.ScreenGrabber in project Terasology by MovingBlocks.
the class ReadWriteStorageManager method saveGamePreviewImage.
private void saveGamePreviewImage() {
final ScreenGrabber screenGrabber = CoreRegistry.get(ScreenGrabber.class);
final Game game = CoreRegistry.get(Game.class);
if (screenGrabber != null && game != null) {
screenGrabber.takeGamePreview(PathManager.getInstance().getSavePath(game.getName()));
}
}
use of org.terasology.engine.rendering.opengl.ScreenGrabber 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);
}
Aggregations