1 #ifndef VGAGFX_INTERN_H
2 #define VGAGFX_INTERN_H
5 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
8 Desc: Private Includes for the VGA Gfx Hidd.
13 #ifndef EXEC_LIBRARIES_H
14 # include <exec/libraries.h>
21 #ifndef EXEC_SEMAPHORES_H
22 # include <exec/semaphores.h>
27 struct VGAGfx_staticdata
32 struct SignalSemaphore sema
; /* Protecting this whole struct */
33 struct List modelist
; /* List of modes supported */
35 /* The following should be object data, not class data! */
36 struct SignalSemaphore HW_acc
; /* Exclusive hardware use */
37 OOP_Object
*visible
; /* Points to visible bitmap */
39 LONG mouseX
; /* Pointer X position on screen */
40 ULONG mouseW
; /* Pointer width */
41 LONG mouseY
; /* Pointer Y position on screen */
42 ULONG mouseH
; /* Pointer height */
43 ULONG mouseVisible
; /* Is pointer visible flag */
44 UBYTE
*mouseShape
; /* Points to pointer shape */
45 UBYTE mouseBase
; /* Pointer base color */
47 /* baseclass for CreateObject */
50 OOP_AttrBase hiddAttrBase
;
51 OOP_AttrBase bitMapAttrBase
;
52 OOP_AttrBase chunkyBMAttrBase
;
53 OOP_AttrBase pixFmtAttrBase
;
54 OOP_AttrBase gfxAttrBase
;
55 OOP_AttrBase syncAttrBase
;
56 OOP_AttrBase vgaBitMapAttrBase
;
59 #define XSD(cl) (&((struct VGAGfxBase *)cl->UserData)->vsd)
61 #undef HiddChunkyBMAttrBase
62 #undef HiddBitMapAttrBase
63 #undef HiddGfxAttrBase
64 #undef HiddPixFmtAttrBase
65 #undef HiddSyncAttrBase
67 #undef HiddVGABitMapAB
69 /* These must stay in the same order as interfaces[] array in vesagfx_init.c */
70 #define HiddChunkyBMAttrBase csd->chunkyBMAttrBase
71 #define HiddBitMapAttrBase csd->bitMapAttrBase
72 #define HiddGfxAttrBase csd->gfxAttrBase
73 #define HiddPixFmtAttrBase csd->pixFmtAttrBase
74 #define HiddSyncAttrBase csd->syncAttrBase
75 #define HiddAttrBase csd->hiddAttrBase
76 #define HiddVGABitMapAB csd->vgaBitMapAttrBase
81 struct Library library
;
83 struct VGAGfx_staticdata vsd
;
86 void draw_mouse (struct VGAGfx_staticdata
*);
87 void erase_mouse (struct VGAGfx_staticdata
*);
88 int vgaBlankScreen(int on
);
90 #endif /* VGAGFX_INTERN_H */