diff options
author | Holger Zickner <[email protected]> | 2004-07-08 20:24:48 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-07-08 20:24:48 +0000 |
commit | 252832999fa43bce63ca4b643fab5d9dd51fccc4 (patch) | |
tree | 98570c65819059d14f0809ae964aa1c6c93684a0 /test/jake2/render | |
parent | 4f13ea26c4f47e54e66926f0700cf631e7bb3352 (diff) |
import of Jake2 version cebit
Diffstat (limited to 'test/jake2/render')
-rw-r--r-- | test/jake2/render/DancingQueens.java | 9 | ||||
-rw-r--r-- | test/jake2/render/TestMap.java | 11 | ||||
-rw-r--r-- | test/jake2/render/TestRenderer.java | 9 |
3 files changed, 22 insertions, 7 deletions
diff --git a/test/jake2/render/DancingQueens.java b/test/jake2/render/DancingQueens.java index fbf233b..d7d2ea4 100644 --- a/test/jake2/render/DancingQueens.java +++ b/test/jake2/render/DancingQueens.java @@ -2,7 +2,7 @@ * DancingQueens.java * Copyright (C) 2003 * - * $Id: DancingQueens.java,v 1.1 2004-07-07 19:59:58 hzi Exp $ + * $Id: DancingQueens.java,v 1.2 2004-07-08 20:24:31 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -204,9 +204,14 @@ public class DancingQueens void run() { startTime = System.currentTimeMillis(); + xcommand_t callback = new xcommand_t() { + public void execute() { + updateScreen(); + } + }; while (true) { - re.updateScreen(null); + re.updateScreen(callback); KBD.Update(); Cbuf.Execute(); } diff --git a/test/jake2/render/TestMap.java b/test/jake2/render/TestMap.java index 9419fa1..711b159 100644 --- a/test/jake2/render/TestMap.java +++ b/test/jake2/render/TestMap.java @@ -2,7 +2,7 @@ * TestMap.java * Copyright (C) 2003 * - * $Id: TestMap.java,v 1.1 2004-07-07 19:59:59 hzi Exp $ + * $Id: TestMap.java,v 1.2 2004-07-08 20:24:31 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -177,7 +177,7 @@ public class TestMap } }; - Qcommon.InitForTestMap(new String[] { "TestMap $Id: TestMap.java,v 1.1 2004-07-07 19:59:59 hzi Exp $" }); + Qcommon.InitForTestMap(new String[] { "TestMap $Id: TestMap.java,v 1.2 2004-07-08 20:24:31 hzi Exp $" }); // sehr wichtig !!! VID.Shutdown(); @@ -218,9 +218,14 @@ public class TestMap void run() { startTime = System.currentTimeMillis(); + xcommand_t callback = new xcommand_t() { + public void execute() { + updateScreen(); + } + }; while (true) { - re.updateScreen(null); + re.updateScreen(callback); KBD.Update(); Cbuf.Execute(); } diff --git a/test/jake2/render/TestRenderer.java b/test/jake2/render/TestRenderer.java index 976d57c..e152747 100644 --- a/test/jake2/render/TestRenderer.java +++ b/test/jake2/render/TestRenderer.java @@ -2,7 +2,7 @@ * TestRenderer.java * Copyright (C) 2003 * - * $Id: TestRenderer.java,v 1.1 2004-07-07 19:59:59 hzi Exp $ + * $Id: TestRenderer.java,v 1.2 2004-07-08 20:24:31 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -226,8 +226,13 @@ public class TestRenderer { void run() { startTime = System.currentTimeMillis(); + xcommand_t callback = new xcommand_t() { + public void execute() { + updateScreen(); + } + }; while (true) { - re.updateScreen(null); + re.updateScreen(callback); KBD.Update(); Cbuf.Execute(); try { |