diff options
author | Carsten Weisse <[email protected]> | 2004-07-16 10:11:36 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2004-07-16 10:11:36 +0000 |
commit | c19debe92ce0eb509cd5c3596b7f858e40424451 (patch) | |
tree | e6469e0d0399cdd40af3f2aaec8e66afdda6a0ad /test/jake2/render/TestRenderer.java | |
parent | 6797f747378633e79ad4510d7f9449dc6bf3defd (diff) |
refimport_t deleted
Diffstat (limited to 'test/jake2/render/TestRenderer.java')
-rw-r--r-- | test/jake2/render/TestRenderer.java | 90 |
1 files changed, 2 insertions, 88 deletions
diff --git a/test/jake2/render/TestRenderer.java b/test/jake2/render/TestRenderer.java index 62ffc7c..8388b20 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.4 2004-07-15 14:38:40 hzi Exp $ + * $Id: TestRenderer.java,v 1.5 2004-07-16 10:11:36 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -48,7 +48,6 @@ public class TestRenderer { String[] args; refexport_t re; - refimport_t ri; viddef_t viddef; int framecount = 0; static int testnr = 0; @@ -66,91 +65,6 @@ public class TestRenderer { void init() { - // only for testing - // a simple refimport_t implementation - ri = new refimport_t() { - public void Sys_Error(int err_level, String str) { - Com.Error(err_level, str, null); - } - - public void Sys_Error(int err_level, String str, Vargs vargs) { - Com.Error(err_level, str, vargs); - } - - public void Cmd_AddCommand(String name, xcommand_t cmd) { - Cmd.AddCommand(name, cmd); - } - - public void Cmd_RemoveCommand(String name) { - Cmd.RemoveCommand(name); - } - - public int Cmd_Argc() { - return Cmd.Argc(); - } - - public String Cmd_Argv(int i) { - return Cmd.Argv(i); - } - - public void Cmd_ExecuteText(int exec_when, String text) { - Cbuf.ExecuteText(exec_when, text); - } - - public void Con_Printf(int print_level, String str) { - VID.Printf(print_level, str, null); - } - - public void Con_Printf(int print_level, String str, Vargs vargs) { - VID.Printf(print_level, str, vargs); - } - - public byte[] FS_LoadFile(String name) { - return FS.LoadFile(name); - } - - public int FS_FileLength(String name) { - return FS.FileLength(name); - } - - public void FS_FreeFile(byte[] buf) { - FS.FreeFile(buf); - } - - public String FS_Gamedir() { - return FS.Gamedir(); - } - - public cvar_t Cvar_Get(String name, String value, int flags) { - return Cvar.Get(name, value, flags); - } - - public cvar_t Cvar_Set(String name, String value) { - return Cvar.Set(name, value); - } - - public void Cvar_SetValue(String name, float value) { - Cvar.SetValue(name, value); - } - - public boolean Vid_GetModeInfo(Dimension dim, int mode) { - return VID.GetModeInfo(dim, mode); - } - - public void Vid_MenuInit() { - VID.MenuInit(); - } - - public void Vid_NewWindow(int width, int height) { - VID.NewWindow(width, height); - } - - public void updateScreenCallback() { - TestRenderer.this.updateScreen(); - } - }; - - Qcommon.Init(new String[] {"TestRenderer"}); // sehr wichtig !!! VID.Shutdown(); @@ -158,7 +72,7 @@ public class TestRenderer { String[] names = Renderer.getDriverNames(); System.out.println("Registered Drivers: " + Arrays.asList(names)); - this.re = Renderer.getDriver("jogl", ri); + this.re = Renderer.getDriver("jogl"); System.out.println("Use driver: " + re); System.out.println(); |