2 Copyright 1995-2019, The AROS Development Team. All rights reserved.
6 #ifndef P96GFX_BITMAP_H
7 #define P96GFX_BITMAP_H
9 #define IID_Hidd_BitMap_P96 "hidd.bitmap.p96gfx"
11 #include "p96gfx_rtg.h"
13 /* This structure is used as instance data for the bitmap class. */
15 struct P96GfxBitMapData
18 struct SignalSemaphore bmLock
;
19 OOP_Object
*pixfmtobj
; /* Cached pixelformat object */
20 OOP_Object
*gfxhidd
; /* Cached driver object */
25 WORD width
, height
, align
;
29 WORD topedge
, leftedge
;
31 struct p96gfx_carddata
*gfxCardData
;
34 #define LOCK_BITMAP(data) {ObtainSemaphore(&(data)->bmLock);}
35 #define TRYLOCK_BITMAP(data) (AttemptSemaphore(&(data)->bmLock))
36 #define UNLOCK_BITMAP(data) {ReleaseSemaphore(&(data)->bmLock);}
38 #endif /* P96GFX_BITMAP_H */