📄 spz16x16.h
字号:
/******************************************************************************//* *//* RAINE 16x16 TILE ZOOMING *//* *//******************************************************************************/#include "deftypes.h"// These ones can zoom from x/y = [0..16] (ie. max size is normal: 16x16)extern UINT8 zoom_1616_dat[(16+1)*16]; // [32+1][16] arrayextern UINT8 zoom_1616r_dat[(16+1)*16]; // [32+1][16] arrayextern UINT8 zoom_1632_dat[33*32]; // [32+1][32] arrayextern UINT8 zoom_1632r_dat[33*32]; // [32+1][32] arrayextern UINT8 zoom_1664_dat[65*64]; // [64+1][64] arrayextern UINT8 zoom_1664r_dat[65*64]; // [64+1][64] arrayvoid init_16x16_zoom(void);UINT8 *make_16x16_zoom_ofs_type1(void);UINT8 *make_16x16_zoom_ofs_type1z(void);UINT8 *make_16x16_zoom_ofs_type1zz(void);void Draw16x16_Trans_Mapped_ZoomXY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_ZoomXY (UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);void Draw16x16_ZoomXY (UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);void Draw16x16_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);void Draw16x16_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);void Draw16x16_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 cmap, int zoom_x, int zoom_y);// These ones can zoom from x/y = [0..32] (ie. max size is double: 32x32)void init_16x16_zoom_32(void);UINT8 *make_16x16_zoom_ofs_type2(void);void Draw16x16_32_Trans_Mapped_ZoomXY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);// These ones can zoom from x/y = [0..32] (ie. max size is quaruple: 32x32)void init_16x16_zoom_64(void);UINT8 *make_16x16_zoom_ofs_type3(void);void Draw16x16_64_Trans_Mapped_ZoomXY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);// 16bppvoid Draw16x16_Trans_Mapped_ZoomXY_16 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_16_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_16_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_16_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_16 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_16_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_16_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_16_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_16 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_16_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_16_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_16_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_16 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_16_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_16_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_16_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);// These ones can zoom from x/y = [0..32] (ie. max size is quaruple: 32x32)void Draw16x16_64_Trans_Mapped_ZoomXY_16 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_16_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_16_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_16_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_16 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_16_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_16_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_16_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);// 32 bppvoid Draw16x16_Trans_Mapped_ZoomXY_32 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_32_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_32_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Trans_Mapped_ZoomXY_32_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_32 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_32_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_32_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_Mapped_ZoomXY_32_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_32 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_32_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_32_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Trans_Mapped_ZoomXY_32_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_32 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_32_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_32_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_32_Mapped_ZoomXY_32_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);// These ones can zoom from x/y = [0..32] (ie. max size is quaruple: 32x32)void Draw16x16_64_Trans_Mapped_ZoomXY_32 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_32_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_32_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Trans_Mapped_ZoomXY_32_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_32 (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_32_FlipY (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_32_FlipX (UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);void Draw16x16_64_Mapped_ZoomXY_32_FlipXY(UINT8 *SPR, int x, int y, UINT8 *cmap, int zoom_x, int zoom_y);// Rot of the above...extern draw_mapped_zoom_xy_func *Draw16x16_Trans_Mapped_ZoomXY_Flip_Rot[4];#define Draw16x16_Trans_Mapped_ZoomXY_flip_Rot(a, b, c, d, e, f, g) (*Draw16x16_Trans_Mapped_ZoomXY_Flip_Rot[g])(a, b, c, d, e, f)#define Draw16x16_Trans_Mapped_ZoomXY_Rot(a, b, c, d, e, f) (*Draw16x16_Trans_Mapped_ZoomXY_Flip_Rot[0])(a, b, c, d, e, f)#define Draw16x16_Trans_Mapped_ZoomXY_FlipY_Rot(a, b, c, d, e, f) (*Draw16x16_Trans_Mapped_ZoomXY_Flip_Rot[1])(a, b, c, d, e, f)#define Draw16x16_Trans_Mapped_ZoomXY_FlipX_Rot(a, b, c, d, e, f) (*Draw16x16_Trans_Mapped_ZoomXY_Flip_Rot[2])(a, b, c, d, e, f)#define Draw16x16_Trans_Mapped_ZoomXY_FlipXY_Rot(a, b, c, d, e, f) (*Draw16x16_Trans_Mapped_ZoomXY_Flip_Rot[3])(a, b, c, d, e, f)extern draw_mapped_zoom_xy_func *Draw16x16_Mapped_ZoomXY_Flip_Rot[4];#define Draw16x16_Mapped_ZoomXY_flip_Rot(a, b, c, d, e, f, g) (*Draw16x16_Mapped_ZoomXY_Flip_Rot[g])(a, b, c, d, e, f)#define Draw16x16_Mapped_ZoomXY_Rot(a, b, c, d, e, f) (*Draw16x16_Mapped_ZoomXY_Flip_Rot[0])(a, b, c, d, e, f)#define Draw16x16_Mapped_ZoomXY_FlipY_Rot(a, b, c, d, e, f) (*Draw16x16_Mapped_ZoomXY_Flip_Rot[1])(a, b, c, d, e, f)#define Draw16x16_Mapped_ZoomXY_FlipX_Rot(a, b, c, d, e, f) (*Draw16x16_Mapped_ZoomXY_Flip_Rot[2])(a, b, c, d, e, f)#define Draw16x16_Mapped_ZoomXY_FlipXY_Rot(a, b, c, d, e, f) (*Draw16x16_Mapped_ZoomXY_Flip_Rot[3])(a, b, c, d, e, f)extern draw_mapped_zoom_xy_func *Draw16x16_32_Trans_Mapped_ZoomXY_Flip_Rot[4];#define Draw16x16_32_Trans_Mapped_ZoomXY_flip_Rot(a, b, c, d, e, f, g) (*Draw16x16_32_Trans_Mapped_ZoomXY_Flip_Rot[g])(a, b, c, d, e, f)#define Draw16x16_32_Trans_Mapped_ZoomXY_Rot(a, b, c, d, e, f) (*Draw16x16_32_Trans_Mapped_ZoomXY_Flip_Rot[0])(a, b, c, d, e, f)#define Draw16x16_32_Trans_Mapped_ZoomXY_FlipY_Rot(a, b, c, d, e, f) (*Draw16x16_32_Trans_Mapped_ZoomXY_Flip_Rot[1])(a, b, c, d, e, f)#define Draw16x16_32_Trans_Mapped_ZoomXY_FlipX_Rot(a, b, c, d, e, f) (*Draw16x16_32_Trans_Mapped_ZoomXY_Flip_Rot[2])(a, b, c, d, e, f)#define Draw16x16_32_Trans_Mapped_ZoomXY_FlipXY_Rot(a, b, c, d, e, f) (*Draw16x16_32_Trans_Mapped_ZoomXY_Flip_Rot[3])(a, b, c, d, e, f)extern draw_mapped_zoom_xy_func *Draw16x16_32_Mapped_ZoomXY_Flip_Rot[4];#define Draw16x16_32_Mapped_ZoomXY_flip_Rot(a, b, c, d, e, f, g) (*Draw16x16_32_Mapped_ZoomXY_Flip_Rot[g])(a, b, c, d, e, f)#define Draw16x16_32_Mapped_ZoomXY_Rot(a, b, c, d, e, f) (*Draw16x16_32_Mapped_ZoomXY_Flip_Rot[0])(a, b, c, d, e, f)#define Draw16x16_32_Mapped_ZoomXY_FlipY_Rot(a, b, c, d, e, f) (*Draw16x16_32_Mapped_ZoomXY_Flip_Rot[1])(a, b, c, d, e, f)#define Draw16x16_32_Mapped_ZoomXY_FlipX_Rot(a, b, c, d, e, f) (*Draw16x16_32_Mapped_ZoomXY_Flip_Rot[2])(a, b, c, d, e, f)#define Draw16x16_32_Mapped_ZoomXY_FlipXY_Rot(a, b, c, d, e, f) (*Draw16x16_32_Mapped_ZoomXY_Flip_Rot[3])(a, b, c, d, e, f)extern draw_mapped_zoom_xy_func *Draw16x16_64_Mapped_ZoomXY_Flip_Rot[4];#define Draw16x16_64_Mapped_ZoomXY_flip_Rot(a, b, c, d, e, f, g) (*Draw16x16_64_Mapped_ZoomXY_Flip_Rot[g])(a, b, c, d, e, f)#define Draw16x16_64_Mapped_ZoomXY_Rot(a, b, c, d, e, f) (*Draw16x16_64_Mapped_ZoomXY_Flip_Rot[0])(a, b, c, d, e, f)#define Draw16x16_64_Mapped_ZoomXY_FlipY_Rot(a, b, c, d, e, f) (*Draw16x16_64_Mapped_ZoomXY_Flip_Rot[1])(a, b, c, d, e, f)#define Draw16x16_64_Mapped_ZoomXY_FlipX_Rot(a, b, c, d, e, f) (*Draw16x16_64_Mapped_ZoomXY_Flip_Rot[2])(a, b, c, d, e, f)#define Draw16x16_64_Mapped_ZoomXY_FlipXY_Rot(a, b, c, d, e, f) (*Draw16x16_64_Mapped_ZoomXY_Flip_Rot[3])(a, b, c, d, e, f)extern draw_mapped_zoom_xy_func *Draw16x16_64_Trans_Mapped_ZoomXY_Flip_Rot[4];#define Draw16x16_64_Trans_Mapped_ZoomXY_flip_Rot(a, b, c, d, e, f, g) (*Draw16x16_64_Trans_Mapped_ZoomXY_Flip_Rot[g])(a, b, c, d, e, f)#define Draw16x16_64_Trans_Mapped_ZoomXY_Rot(a, b, c, d, e, f) (*Draw16x16_64_Trans_Mapped_ZoomXY_Flip_Rot[0])(a, b, c, d, e, f)#define Draw16x16_64_Trans_Mapped_ZoomXY_FlipY_Rot(a, b, c, d, e, f) (*Draw16x16_64_Trans_Mapped_ZoomXY_Flip_Rot[1])(a, b, c, d, e, f)#define Draw16x16_64_Trans_Mapped_ZoomXY_FlipX_Rot(a, b, c, d, e, f) (*Draw16x16_64_Trans_Mapped_ZoomXY_Flip_Rot[2])(a, b, c, d, e, f)#define Draw16x16_64_Trans_Mapped_ZoomXY_FlipXY_Rot(a, b, c, d, e, f) (*Draw16x16_64_Trans_Mapped_ZoomXY_Flip_Rot[3])(a, b, c, d, e, f)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -