Debian Codegraph @

src/live_screen.h

raw
1 /**
2 * Displayed screen
3
4 * Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson
5 * Copyright (C) 2005, 2007, 2008, 2009, 2014, 2015 Sylvain Beucler
6
7 * This file is part of GNU FreeDink
8
9 * GNU FreeDink is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 3 of the
12 * License, or (at your option) any later version.
13
14 * GNU FreeDink is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see
21 * <http://www.gnu.org/licenses/>.
22 */
23
24 #ifndef LIVE_SCREEN_H
25 #define LIVE_SCREEN_H
26
27 #include "live_sprite.h"
28 #include "editor_screen.h"
29 #include "IOGfxSurface.h"
30
31 /* base editor screen */
32 extern struct editor_screen cur_ed_screen;
33
34 // struct for hardness map
35 extern unsigned char screen_hitmap[600+1][400+1];
36
37 extern int playl;
38 extern int playx;
39 extern int playy;
40
41 extern /*bool*/int transition_in_progress;
42
43
44 extern void live_screen_init();
45 extern void add_hardness(int sprite, int num);
46 extern unsigned char get_hard(int x1, int y1, int screenlock);
47 extern void fill_hard_sprites(void);
48 extern void fill_whole_hard(void);
49 extern void fill_hardxy(rect box);
50
51 extern void screen_rank_game_sprites(int* rank);
52 /*bool*/int get_box (int h, rect * box_scaled, rect * box_real, bool skip_screen_clipping);
53 extern void draw_sprite_game(IOGfxSurface* GFX_lpdest, int h);
54 extern void grab_trick(int dir);
55 extern bool transition(int fps_final);
56
57 #endif