X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Fframebuffer_messages.h;fp=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Fframebuffer_messages.h;h=034999b881e61b3fe9738227db71282edac20419;hb=54ee7218058b4285be6b02195cba4e90c4e12a2d;hp=0000000000000000000000000000000000000000;hpb=32220fa40a3b5f6d642a5471b2796b2ade8abfea;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/include/framebuffer_messages.h b/Usermode/Applications/axwin3_src/include/framebuffer_messages.h new file mode 100644 index 00000000..034999b8 --- /dev/null +++ b/Usermode/Applications/axwin3_src/include/framebuffer_messages.h @@ -0,0 +1,53 @@ +/* + * Acess2 Window Manager v3 + * - By John Hodge (thePowersGang) + * + * framebuffer_messages.h + * - Drawing Surface / Framebuffer Window Type + */ +#ifndef _AXWIN3__FRAMEBUFFER_MESSAGES_H_ +#define _AXWIN3__FRAMEBUFFER_MESSAGES_H_ + +enum +{ + MSG_FB_COMMIT = 0x1000, + MSG_FB_NEWBUF, + MSG_FB_UPLOAD, + MSG_FB_DOWNLOAD, + MSG_FB_BLIT, + MSG_FB_FILL +}; + +typedef struct +{ + uint16_t Buffer; + uint16_t W, H; +} tFBMsg_NewBuf; + +typedef struct +{ + uint16_t Buffer; + uint16_t W, H; + uint16_t X, Y; + uint32_t ImageData[]; +} tFBMsg_Transfer; + +typedef struct +{ + uint16_t Source; + uint16_t Dest; + uint16_t SrcX, SrcY; + uint16_t DstX, DstY; + uint16_t W, H; +} tFBMsg_Blit; + +typedef struct +{ + uint16_t Buffer; + uint16_t X, Y; + uint16_t W, H; + uint32_t Colour; +} tFBMsg_Fill; + +#endif +