summaryrefslogtreecommitdiffstats
path: root/apps/plugins/xrick/draw.h
blob: 15520bd79949b8893b4d2d43094edff3d322ee39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * xrick/draw.h
 *
 * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net).
 * Copyright (C) 2008-2014 Pierluigi Vicinanza.
 * All rights reserved.
 *
 * The use and distribution terms for this software are contained in the file
 * named README, which can be found in the root of this distribution. By
 * using this software in any fashion, you are agreeing to be bound by the
 * terms of this license.
 *
 * You must not remove this notice, or any other, from this software.
 */

#ifndef _DRAW_H
#define _DRAW_H

#include "xrick/rects.h"
#include "xrick/data/img.h"
#ifdef GFXST
#include "xrick/data/pics.h"
#endif

#include <stddef.h> /* size_t */

/* map coordinates of the screen */
#define DRAW_XYMAP_SCRLEFT (-0x0020)
#define DRAW_XYMAP_SCRTOP (0x0040)
/* map coordinates of the top of the hidden bottom of the map */
#define DRAW_XYMAP_HBTOP (0x0100)

extern U8 *draw_tllst;
#ifdef GFXPC
extern U16 draw_filter;
#endif
extern U8 draw_tilesBank;

extern rect_t draw_STATUSRECT;
extern const rect_t draw_SCREENRECT; /* whole fb */

extern size_t game_color_count;
extern img_color_t *game_colors;

extern void draw_setfb(U16, U16);
extern bool draw_clipms(S16 *, S16 *, U16 *, U16 *);
extern void draw_tilesList(void);
extern void draw_tilesListImm(U8 *);
extern U8 draw_tilesSubList(void);
extern void draw_tile(register U8);
extern void draw_sprite(U8, U16, U16);
extern void draw_sprite2(U8, U16, U16, bool);
extern void draw_spriteBackground(U16, U16);
extern void draw_map(void);
extern void draw_drawStatus(void);
extern void draw_clearStatus(void);
#ifdef GFXST
extern void draw_pic(const pic_t *);
#endif
extern void draw_infos(void);
extern void draw_img(img_t *);

#endif /* ndef _DRAW_H */

/* eof */