summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 };