summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-03 00:46:27 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-03 00:46:27 +0300
commit23360084cd8cfc30441e1a4ffd399b29daa53401 (patch)
tree1455d98045a45cc2f1f4d0a0c43b1924f2c7051b /src
parent13ef68ec8beb98b687a6435033a5a90196c4198b (diff)
downloadtakethis-23360084cd8cfc30441e1a4ffd399b29daa53401.tar
takethis-23360084cd8cfc30441e1a4ffd399b29daa53401.tar.xz
takethis-23360084cd8cfc30441e1a4ffd399b29daa53401.zip
Na Zdorovie!
Diffstat (limited to 'src')
-rw-r--r--src/player.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index 02b2c08..2c7fe65 100644
--- a/src/player.c
+++ b/src/player.c
@@ -3,6 +3,7 @@
#include "globals.h"
#include <math.h>
+
void tt_player_draw()
{
int i, j;
@@ -83,7 +84,20 @@ void tt_player_draw()
ttplayer.y - 32 + r * sin(f), 64, 96 };
SDL_RenderCopy(ttrdr, tttxr, &s, &d);
}
+/*
+ {
+ SDL_BlendMode mode;
+ SDL_GetRenderDrawBlendMode(ttrdr, &mode);
+ SDL_SetRenderDrawBlendMode(ttrdr, SDL_BLENDMODE_ADD);
+ SDL_Texture *txr = SDL_CreateTexture(ttrdr, SDL_PIXELFORMAT_RGBA8888,
+ SDL_TEXTUREACCESS_TARGET, 950, 540);
+ SDL_SetRenderTarget(ttrdr, txr);
+ SDL_SetRenderTarget(ttrdr, 0);
+ SDL_RenderCopy(ttrdr, txr, 0, 0);
+ SDL_SetRenderDrawBlendMode(ttrdr, mode);
+ }
+*/
{
SDL_Rect src = { 0, 16 * 11, 16, 16 };
SDL_Rect d = { 20 + TT_ROOM_W * 32 + 32, 12 + 32, 64, 64 };