wip prep commit in lieu of gfx subsystem update changes.
[AROS.git] / arch / m68k-amiga / hidd / uaegfx / uaegfx_bitmap.h
blob5d2a0ac3d27df83379caca02591b082a04dfbe36
1 /*
2 Copyright 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _UAEGFXBITMAP_H
7 #define _UAEGFXBITMAP_H
9 #define IID_Hidd_BitMap_UAE "hidd.bitmap.uae"
11 #include "uaertg.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