configure.ac: prevent -lao, -lXext to be linked to all binaries
[rofl0r-gnuboy.git] / lcd.h
blob4cbbd968b11f0f3616575ed8b39fa564c7c819d4
3 #ifndef __LCD_H__
4 #define __LCD_H__
6 #include "defs.h"
8 struct vissprite
10 byte *buf;
11 int x;
12 byte pal, pri, pad[6];
15 struct scan
17 int bg[64];
18 int wnd[64];
19 byte buf[256];
20 byte pal1[128];
21 un16 pal2[64];
22 un32 pal4[64];
23 byte pri[256];
24 struct vissprite vs[16];
25 int ns, l, x, y, s, t, u, v, wx, wy, wt, wv;
28 struct obj
30 byte y;
31 byte x;
32 byte pat;
33 byte flags;
36 struct lcd
38 byte vbank[2][8192];
39 union
41 byte mem[256];
42 struct obj obj[40];
43 } oam;
44 byte pal[128];
47 extern struct lcd lcd;
48 extern struct scan scan;
50 void updatepatpix();
51 void tilebuf();
52 void bg_scan();
53 void wnd_scan();
54 void bg_scan_pri();
55 void wnd_scan_pri();
56 void bg_scan_color();
57 void wnd_scan_color();
58 void spr_count();
59 void spr_enum();
60 void spr_scan();
61 void lcd_begin();
62 void lcd_refreshline();
63 void pal_write(int i, byte b);
64 void pal_write_dmg(int i, int mapnum, byte d);
65 void vram_write(int a, byte b);
66 void vram_dirty();
67 void pal_dirty();
68 void lcd_reset();
72 #endif