Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Update: render: tisk: sprite: Adapted print funtion for new Sprite type
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarouf committed Apr 9, 2021
1 parent 7290dd7 commit 184b7f7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/zse/io/tisk/render_tisk_sprite.c
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#include "../../common.h"
#include "../../sprite/sprite_lib.h"
#include "../../sprite_new/sprite_char_def.h"

#include "render_tisk_color.h"
#include <stdio.h>

void zse_rtT_sprite_print(SPRITES_t *spr, int frame)
void zse_rtT__spriteChar__print(const zset__SpriteChar *spr, int frame)
{
for (int i = 0; i < spr->Y; ++i)
for (int i = 0; i < spr->x; ++i)
{
for (int j = 0; j < spr->X; ++j)
for (int j = 0; j < spr->y; ++j)
{
zse_rtT__color256Fg_set(spr->plot[zse_xyz3Dto1D(i, j, frame, spr->X, spr->Y)]>>8);
putc(spr->plot[zse_xyz3Dto1D(i, j, frame, spr->X, spr->Y)]&0xFF, stdout);
zse_rtT__color256Fg_set(spr->colormap[zse_xyz3Dto1D(i, j, frame, spr->x, spr->y)]);
putc(spr->plot[zse_xyz3Dto1D(i, j, frame, spr->x, spr->y)]&0xff, stdout);
}
putc('\n', stdout);
}

}

0 comments on commit 184b7f7

Please sign in to comment.