1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 9 #include <dxconfig.h> 10 11 12 #ifndef hwFlags_h 13 #define hwFlags_h 14 /*---------------------------------------------------------------------------*\ 15 $Source: /src/master/dx/src/exec/hwrender/hwFlags.h,v $ 16 Author: Tim Murphy 17 18 This file contains defintions for he hwFlags data type and manipulation 19 functions. 20 21 The logic currently allows 32 flags. 22 23 \*---------------------------------------------------------------------------*/ 24 25 /*---------------------------------------------------------------------------*\ 26 Defines 27 \*---------------------------------------------------------------------------*/ 28 /*---------------------------------------------------------------------------*\ 29 Structure Pointers 30 \*---------------------------------------------------------------------------*/ 31 32 typedef unsigned long hwFlagsT; 33 typedef hwFlagsT *hwFlags; 34 35 /*---------------------------------------------------------------------------*\ 36 Function Declarations 37 \*---------------------------------------------------------------------------*/ 38 39 hwFlags _dxf_SERVICES_FLAGS(); 40 41 #define _dxf_isFlagsSet(dstFlags,srcFlags) \ 42 ((srcFlags) & *(dstFlags)) 43 44 #define _dxf_setFlags(dstFlags,srcFlags) \ 45 *(dstFlags) = (*(dstFlags) | (srcFlags)) 46 47 #define _dxf_clearFlags(dstFlags,srcFlags) \ 48 *(dstFlags) = (*(dstFlags) & ~(srcFlags)) 49 50 #endif /* hwFlags_h */ 51 52 53