From b6b2ebd4ee974ff03943275fa20289a83b549161 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Wed, 22 Nov 2006 15:05:39 +0000 Subject: better driver dependent screenshot handling --- src/jake2/render/LwjglRenderer.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/jake2/render/LwjglRenderer.java') diff --git a/src/jake2/render/LwjglRenderer.java b/src/jake2/render/LwjglRenderer.java index 9490b2d..156d385 100644 --- a/src/jake2/render/LwjglRenderer.java +++ b/src/jake2/render/LwjglRenderer.java @@ -2,7 +2,7 @@ * LwjglRenderer.java * Copyright (C) 2004 * - * $Id: LwjglRenderer.java,v 1.3 2006-11-21 02:22:19 cawe Exp $ + * $Id: LwjglRenderer.java,v 1.4 2006-11-22 15:05:39 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -216,14 +216,18 @@ final class LwjglRenderer extends LwjglDriver implements refexport_t, Ref { public final void AppActivate(boolean activate) { appActivate(activate); } + + public void screenshot() { + impl.GL_ScreenShot_f(); + } public final int apiVersion() { return Defines.API_VERSION; } - public KBD getKeyboardHandler() { - return kbd; - } + public KBD getKeyboardHandler() { + return kbd; + } // ============================================================================ // Ref interface -- cgit v1.2.3