034999b881e61b3fe9738227db71282edac20419
[tpg/acess2.git] / Usermode / Applications / axwin3_src / include / framebuffer_messages.h
1 /*
2  * Acess2 Window Manager v3
3  * - By John Hodge (thePowersGang)
4  *
5  * framebuffer_messages.h
6  * - Drawing Surface / Framebuffer Window Type
7  */
8 #ifndef _AXWIN3__FRAMEBUFFER_MESSAGES_H_
9 #define _AXWIN3__FRAMEBUFFER_MESSAGES_H_
10
11 enum
12 {
13         MSG_FB_COMMIT = 0x1000,
14         MSG_FB_NEWBUF,
15         MSG_FB_UPLOAD,
16         MSG_FB_DOWNLOAD,
17         MSG_FB_BLIT,
18         MSG_FB_FILL
19 };
20
21 typedef struct
22 {
23         uint16_t        Buffer;
24         uint16_t        W, H;
25 } tFBMsg_NewBuf;
26
27 typedef struct
28 {
29         uint16_t        Buffer;
30         uint16_t        W, H;
31         uint16_t        X, Y;
32         uint32_t        ImageData[];
33 } tFBMsg_Transfer;
34
35 typedef struct
36 {
37         uint16_t        Source;
38         uint16_t        Dest;
39         uint16_t        SrcX, SrcY;
40         uint16_t        DstX, DstY;
41         uint16_t        W, H;
42 } tFBMsg_Blit;
43
44 typedef struct
45 {
46         uint16_t        Buffer;
47         uint16_t        X, Y;
48         uint16_t        W, H;
49         uint32_t        Colour;
50 } tFBMsg_Fill;
51
52 #endif
53

UCC git Repository :: git.ucc.asn.au