blob: 59ac06a9e361c4e2c2a10814a213ccef31bc5ffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "TZR_render.h"
#include "TZR_globals.h"
#include "sdl_error.h"
#include <SDL2/SDL_render.h>
int
TZR_DrawBegin(void)
{
if (TZR_BlendMode(SDL_BLENDMODE_BLEND))
return sdl_error(-1);
if (___tzr_config.hd_render)
return 0;
if (SDL_SetRenderTarget(___tzr_renderer, ___tzr_target) < 0)
return sdl_error(-1);
return 0;
}
|