rename some files for consistency. split p96_rtg.c into p96gfx_card.c for the card...
[AROS.git] / arch / m68k-amiga / hidd / p96gfx / p96gfx_bitmap.h
blob3068a55a5e27f2424ffad76f0bd0b12ea9c7ea8d
1 /*
2 Copyright 1995-2019, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _P96GFXBITMAP_H
7 #define _P96GFXBITMAP_H
9 #define IID_Hidd_BitMap_P96 "hidd.bitmap.p96"
11 #include "p96gfx_rtg.h"
13 /* This structure is used as instance data for the bitmap class. */
15 struct bm_data
17 struct MinNode node;
18 struct SignalSemaphore bmLock;
19 OOP_Object *pixfmtobj; /* Cached pixelformat object */
20 OOP_Object *gfxhidd; /* Cached driver object */
21 ULONG rgbformat;
22 UBYTE *VideoData;
23 ULONG memsize;
24 BOOL invram;
25 WORD width, height, align;
26 WORD bytesperpixel;
27 WORD bytesperline;
28 UBYTE *palette;
29 WORD topedge, leftedge;
30 WORD locked;
33 #define LOCK_BITMAP(data) {ObtainSemaphore(&(data)->bmLock);}
34 #define TRYLOCK_BITMAP(data) (AttemptSemaphore(&(data)->bmLock))
35 #define UNLOCK_BITMAP(data) {ReleaseSemaphore(&(data)->bmLock);}
37 #endif