blob: b71daac5938f93f0820f148cae1313bd0b980468 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "TZR_render.h"
#include "TZR_globals.h"
#include "sdl_error.h"
#include <SDL2/SDL_render.h>
int TZR_DrawLine(int x0, int y0, int x1, int y1)
{
if (SDL_RenderDrawLine(___tzr_renderer, x0, y0, x1, y1) < 0)
return sdl_error(-1);
return 0;
}
|