A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 65 lines 1.7 kB view raw
1/* 2 * xrick/draw.h 3 * 4 * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). 5 * Copyright (C) 2008-2014 Pierluigi Vicinanza. 6 * All rights reserved. 7 * 8 * The use and distribution terms for this software are contained in the file 9 * named README, which can be found in the root of this distribution. By 10 * using this software in any fashion, you are agreeing to be bound by the 11 * terms of this license. 12 * 13 * You must not remove this notice, or any other, from this software. 14 */ 15 16#ifndef _DRAW_H 17#define _DRAW_H 18 19#include "xrick/rects.h" 20#include "xrick/data/img.h" 21#ifdef GFXST 22#include "xrick/data/pics.h" 23#endif 24 25#include <stddef.h> /* size_t */ 26 27/* map coordinates of the screen */ 28#define DRAW_XYMAP_SCRLEFT (-0x0020) 29#define DRAW_XYMAP_SCRTOP (0x0040) 30/* map coordinates of the top of the hidden bottom of the map */ 31#define DRAW_XYMAP_HBTOP (0x0100) 32 33extern U8 *draw_tllst; 34#ifdef GFXPC 35extern U16 draw_filter; 36#endif 37extern U8 draw_tilesBank; 38 39extern rect_t draw_STATUSRECT; 40extern const rect_t draw_SCREENRECT; /* whole fb */ 41 42extern size_t game_color_count; 43extern img_color_t *game_colors; 44 45extern void draw_setfb(U16, U16); 46extern bool draw_clipms(S16 *, S16 *, U16 *, U16 *); 47extern void draw_tilesList(void); 48extern void draw_tilesListImm(U8 *); 49extern U8 draw_tilesSubList(void); 50extern void draw_tile(register U8); 51extern void draw_sprite(U8, U16, U16); 52extern void draw_sprite2(U8, U16, U16, bool); 53extern void draw_spriteBackground(U16, U16); 54extern void draw_map(void); 55extern void draw_drawStatus(void); 56extern void draw_clearStatus(void); 57#ifdef GFXST 58extern void draw_pic(const pic_t *); 59#endif 60extern void draw_infos(void); 61extern void draw_img(img_t *); 62 63#endif /* ndef _DRAW_H */ 64 65/* eof */