use USER_CPPFLAGS
[AROS.git] / arch / all-native / hidd / vgagfx / vgagfx_intern.h
blob668ccb096e55320321d85d27a5aed4214b1b6cb7
1 #ifndef VGAGFX_INTERN_H
2 #define VGAGFX_INTERN_H
4 /*
5 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Private Includes for the VGA Gfx Hidd.
9 Lang: English.
13 #ifndef EXEC_LIBRARIES_H
14 # include <exec/libraries.h>
15 #endif
17 #ifndef OOP_OOP_H
18 # include <oop/oop.h>
19 #endif
21 #ifndef EXEC_SEMAPHORES_H
22 # include <exec/semaphores.h>
23 #endif
25 /* misc */
27 struct VGAGfx_staticdata
29 OOP_Class *vgaclass;
30 OOP_Class *bmclass;
31 OOP_Object *vgahidd;
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 */
48 OOP_Class *basebm;
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
66 #undef HiddAttrBase
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
77 #define csd XSD(cl)
79 struct VGAGfxBase
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 */