Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathblit.h
More file actions
Latest commit
48 lines (39 loc) · 1.15 KB
/
Copy pathblit.h
File metadata and controls
48 lines (39 loc) · 1.15 KB
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
#ifndef__BLIT_H
#define__BLIT_H
#include"cfg.h"
#ifndefWIN32
#include"config.h"
#endif
/* screen dimensions */
externintSCREEN_X,SCREEN_Y;
/* hero's offset on the screen */
externintSCREEN_XOFFSET,SCREEN_YOFFSET;
/* screen buffer (attributes and pixels) */
externunsigned char*screen_a,*screen;
#ifdefTRI_D
externunsigned char*screen2_a,*screen2;
#endif
/* previous screen buffer (attributes and pixels) */
externunsigned char*screen_a_old,*screen_old;
#ifdefTRI_D
externunsigned char*screen2_a_old,*screen2_old;
#endif
/* flush screenbuffer to the screen */
#ifdefHAVE_INLINE
externinlinevoid
#else
externvoid
#endif
blit_screen(unsigned charignore_bg);
/* clear screen buffer */
externvoidclear_screen(void);
externvoidinit_blit(void);
externvoidshutdown_blit(void);
externvoidredraw_screen(void);
/* resize and clear screenbuffers */
externvoidresize_screen(void);
/* print text on given position and with given color into screenbuffer */
externvoidprint2screen(intx,inty,unsigned charcolor,char*message);
/* draw frame into screen buffer */
externvoiddraw_frame(intx,inty,intw,inth,unsigned charcolor);
#endif