From 878ede3080ab2cfb627aca505c397d9765052996 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 27 Oct 2009 14:38:53 +0000 Subject: major update with stuff --- src/game/client/components/debughud.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/game/client/components/debughud.cpp') diff --git a/src/game/client/components/debughud.cpp b/src/game/client/components/debughud.cpp index ada006ea..c7cc559b 100644 --- a/src/game/client/components/debughud.cpp +++ b/src/game/client/components/debughud.cpp @@ -5,6 +5,7 @@ extern "C" { } #include +#include #include #include @@ -23,7 +24,7 @@ void DEBUGHUD::render_netcorrections() if(!config.debug || !gameclient.snap.local_character || !gameclient.snap.local_prev_character) return; - gfx_mapscreen(0, 0, 300*gfx_screenaspect(), 300); + Graphics()->MapScreen(0, 0, 300*Graphics()->ScreenAspect(), 300); /*float speed = distance(vec2(netobjects.local_prev_character->x, netobjects.local_prev_character->y), vec2(netobjects.local_character->x, netobjects.local_character->y));*/ @@ -50,7 +51,7 @@ void DEBUGHUD::render_tuning() TUNING_PARAMS standard_tuning; - gfx_mapscreen(0, 0, 300*gfx_screenaspect(), 300); + Graphics()->MapScreen(0, 0, 300*Graphics()->ScreenAspect(), 300); float y = 50.0f; int count = 0; @@ -87,9 +88,9 @@ void DEBUGHUD::render_tuning() y = y+count*6; - gfx_texture_set(-1); - gfx_blend_normal(); - gfx_lines_begin(); + Graphics()->TextureSet(-1); + Graphics()->BlendNormal(); + Graphics()->LinesBegin(); float height = 50.0f; float pv = 1; for(int i = 0; i < 100; i++) @@ -97,11 +98,11 @@ void DEBUGHUD::render_tuning() float speed = i/100.0f * 3000; float ramp = velocity_ramp(speed, gameclient.tuning.velramp_start, gameclient.tuning.velramp_range, gameclient.tuning.velramp_curvature); float rampedspeed = (speed * ramp)/1000.0f; - gfx_lines_draw((i-1)*2, y+height-pv*height, i*2, y+height-rampedspeed*height); - //gfx_lines_draw((i-1)*2, 200, i*2, 200); + Graphics()->LinesDraw((i-1)*2, y+height-pv*height, i*2, y+height-rampedspeed*height); + //Graphics()->LinesDraw((i-1)*2, 200, i*2, 200); pv = rampedspeed; } - gfx_lines_end(); + Graphics()->LinesEnd(); gfx_text_color(1,1,1,1); } -- cgit 1.4.1