diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-10-27 14:38:53 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-10-27 14:38:53 +0000 |
| commit | 878ede3080ab2cfb627aca505c397d9765052996 (patch) | |
| tree | 98bff371070e1dca0295f0ca58d64ac4ee8042ce /src/game/client/components/flow.cpp | |
| parent | 9b99ec0e60b60134e46f2f71d707230948f7db03 (diff) | |
| download | zcatch-878ede3080ab2cfb627aca505c397d9765052996.tar.gz zcatch-878ede3080ab2cfb627aca505c397d9765052996.zip | |
major update with stuff
Diffstat (limited to 'src/game/client/components/flow.cpp')
| -rw-r--r-- | src/game/client/components/flow.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/client/components/flow.cpp b/src/game/client/components/flow.cpp index b2f983e6..9ecd4b5c 100644 --- a/src/game/client/components/flow.cpp +++ b/src/game/client/components/flow.cpp @@ -1,3 +1,4 @@ +#include <engine/client/graphics.h> #include <game/mapitems.hpp> #include <game/layers.hpp> #include "flow.hpp" @@ -15,17 +16,17 @@ void FLOW::dbg_render() if(!cells) return; - gfx_texture_set(-1); - gfx_lines_begin(); + Graphics()->TextureSet(-1); + Graphics()->LinesBegin(); for(int y = 0; y < height; y++) for(int x = 0; x < width; x++) { vec2 pos(x*spacing, y*spacing); vec2 vel = cells[y*width+x].vel * 0.01f; - gfx_lines_draw(pos.x, pos.y, pos.x+vel.x, pos.y+vel.y); + Graphics()->LinesDraw(pos.x, pos.y, pos.x+vel.x, pos.y+vel.y); } - gfx_lines_end(); + Graphics()->LinesEnd(); } void FLOW::init() |