#include "TZR_render.h" #include "TZR_globals.h" #include "sdl_error.h" #include int TZR_DrawLine(int x0, int y0, int x1, int y1) { x0 += TZR_GetCameraX(); y0 += TZR_GetCameraY(); x1 += TZR_GetCameraX(); y1 += TZR_GetCameraY(); if (SDL_RenderDrawLine(___tzr_renderer, x0, y0, x1, y1) < 0) return sdl_error(-1); return 0; }