added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / graphics / gfx.h
blobbac03241279a5276e1f1eaaff011bea3bc546d3c
1 #ifndef GRAPHICS_GFX_H
2 #define GRAPHICS_GFX_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Graphic structures
9 Lang: english
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
16 typedef UBYTE * PLANEPTR;
17 typedef struct tPoint
19 WORD x;
20 WORD y;
21 } Point;
23 #define BITSET 0x8000
24 #define BITCLR 0
26 #define AGNUS
27 #ifdef AGNUS
28 #define TOBB(x) ((LONG)(x))
29 #else
30 #define TOBB(x) ((LONG)(x)>>1)
31 #endif
33 struct BitMap
35 UWORD BytesPerRow;
36 UWORD Rows;
37 UBYTE Flags;
38 UBYTE Depth;
39 UWORD pad;
40 PLANEPTR Planes[8];
43 #define RASSIZE(w,h) ( (h) * ( ((w)+15) >>3 & 0xFFFE ))
45 struct Rectangle
47 WORD MinX;
48 WORD MinY;
49 WORD MaxX;
50 WORD MaxY;
53 struct Rect32
55 LONG MinX;
56 LONG MinY;
57 LONG MaxX;
58 LONG MaxY;
61 #define BMB_CLEAR 0
62 #define BMF_CLEAR (1L<<0)
63 #define BMB_DISPLAYABLE 1
64 #define BMF_DISPLAYABLE (1L<<1)
65 #define BMB_INTERLEAVED 2
66 #define BMF_INTERLEAVED (1L<<2)
67 #define BMB_STANDARD 3
68 #define BMF_STANDARD (1L<<3)
69 #define BMB_MINPLANES 4
70 #define BMF_MINPLANES (1L<<4)
73 /* Cybergfx flag */
74 #define BMB_SPECIALFMT 7
75 #define BMF_SPECIALFMT (1L<<7)
77 #define BMB_PIXFMT_SHIFTUP 24
79 /* AROS specific flags */
80 #define BMB_AROS_HIDD 8
81 #define BMF_AROS_HIDD (1L << 7)
83 #define BMA_HEIGHT 0
84 #define BMA_DEPTH 4
85 #define BMA_WIDTH 8
86 #define BMA_FLAGS 12
88 #endif /* GRAPHICS_GFX_H */