mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
original xrick code by 'BigOrno' at: http://www.bigorno.net/xrick/ Rockbox port, plus bugfixes at: https://github.com/pierluigi-vicinanza/xrick Further changes: * Additonal fixes from g#3026 * Port to modern plugin API * Add Pluginlib keymap fallback * Support all >1bpp screens * Fix build warnings in miniz * Better error message when resources are missing Change-Id: Id83928bc2539901b0221692f65cbca41389c58e7
65 lines
1.7 KiB
C
65 lines
1.7 KiB
C
/*
|
|
* 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 */
|