~ubuntu-branches/debian/squeeze/overkill/squeeze

« back to all changes in this revision

Viewing changes to blit.h

  • Committer: Bazaar Package Importer
  • Author(s): Eray Ozkural (exa)
  • Date: 2001-12-28 16:19:40 UTC
  • Revision ID: james.westby@ubuntu.com-20011228161940-icbnkftijfc57jd5
Tags: upstream-0.16
ImportĀ upstreamĀ versionĀ 0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __BLIT_H
 
2
#define __BLIT_H
 
3
 
 
4
#include "cfg.h"
 
5
 
 
6
#ifndef WIN32
 
7
#include "config.h"
 
8
#endif
 
9
 
 
10
/* screen dimensions */
 
11
extern int SCREEN_X,SCREEN_Y;
 
12
 
 
13
/* hero's offset on the screen */
 
14
extern int SCREEN_XOFFSET,SCREEN_YOFFSET;
 
15
 
 
16
/* screen buffer (attributes and pixels) */
 
17
extern unsigned char *screen_a,*screen;
 
18
#ifdef TRI_D
 
19
extern unsigned char *screen2_a,*screen2;
 
20
#endif
 
21
/* previous screen buffer (attributes and pixels) */
 
22
extern unsigned char *screen_a_old,*screen_old;
 
23
#ifdef TRI_D
 
24
extern unsigned char *screen2_a_old,*screen2_old;
 
25
#endif
 
26
 
 
27
 
 
28
/* flush screenbuffer to the screen */
 
29
#ifdef HAVE_INLINE
 
30
        extern inline void 
 
31
#else
 
32
        extern void
 
33
#endif
 
34
blit_screen(unsigned char ignore_bg);
 
35
 
 
36
/* clear screen buffer */
 
37
extern void clear_screen(void);
 
38
extern void init_blit(void);
 
39
extern void shutdown_blit(void);
 
40
extern void redraw_screen(void);
 
41
/* resize and clear screenbuffers */
 
42
extern void resize_screen(void);
 
43
/* print text on given position and with given color into screenbuffer  */
 
44
extern void print2screen(int x,int y,unsigned char color,char* message);
 
45
/* draw frame into screen buffer */
 
46
extern void draw_frame(int x,int y,int w,int h,unsigned char color);
 
47
 
 
48
#endif