blob: f33bc7404c75c03db35d7069843dfb169b7d2e02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "TZR_render.h"
#include "TZR_globals.h"
#include "sdl_error.h"
#include <SDL2/SDL_render.h>
int
TZR_DrawPoint(int x, int y)
{
x += TZR_GetCameraX();
y += TZR_GetCameraY();
if (SDL_RenderDrawPoint(___tzr_renderer, x, y) < 0)
return sdl_error(-1);
return 0;
}
|