1 #ifndef HIDD_VESAGFXCLASS_H
2 #define HIDD_VESAGFXCLASS_H
5 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 Desc: Some VesaGfx useful data.
12 #define BUFFERED_VRAM 1
14 #include <exec/semaphores.h>
15 #include <exec/memory.h>
16 #include <exec/nodes.h>
17 #include <exec/types.h>
23 #define IID_Hidd_VesaGfx "hidd.gfx.vesa"
24 #define CLID_Hidd_VesaGfx "hidd.gfx.vesa"
26 struct VesaGfx_staticdata
29 OOP_Class
*vesagfxclass
;
31 OOP_Class
*offbmclass
;
32 OOP_Object
*vesagfxhidd
;
33 struct BitmapData
*visible
;
34 VOID (*activecallback
)(APTR
, OOP_Object
*, BOOL
);
36 struct MouseData mouse
;
39 struct SignalSemaphore framebufferlock
;
41 struct SignalSemaphore HW_acc
;
46 struct Library library
;
48 struct VesaGfx_staticdata vsd
;
52 #define LOCK_FRAMEBUFFER(xsd) ObtainSemaphore(&xsd->framebufferlock)
53 #define UNLOCK_FRAMEBUFFER(xsd) ReleaseSemaphore(&xsd->framebufferlock)
56 #define XSD(cl) (&((struct VesaGfxBase *)cl->UserData)->vsd)
58 #endif /* HIDD_VESAGFXCLASS_H */