00001 /****************************************************************************************/ 00002 /* BitmapList.h */ 00003 /* */ 00004 /* Author: Charles Bloom */ 00005 /* Description: Maintains a pool of bitmap pointers. */ 00006 /* */ 00007 /* The contents of this file are subject to the Genesis3D Public License */ 00008 /* Version 1.01 (the "License"); you may not use this file except in */ 00009 /* compliance with the License. You may obtain a copy of the License at */ 00010 /* http://www.genesis3d.com */ 00011 /* */ 00012 /* Software distributed under the License is distributed on an "AS IS" */ 00013 /* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */ 00014 /* the License for the specific language governing rights and limitations */ 00015 /* under the License. */ 00016 /* */ 00017 /* The Original Code is Genesis3D, released March 25, 1999. */ 00018 /* Genesis3D Version 1.1 released November 15, 1999 */ 00019 /* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */ 00020 /* */ 00021 /****************************************************************************************/ 00022 #ifndef BITMAPLIST_H 00023 #define BITMAPLIST_H 00024 00025 #include "GeTypes.h" 00026 #include "DCommon.h" 00027 #include "Bitmap.h" 00028 00029 typedef struct BitmapList BitmapList; 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif 00034 00035 BitmapList *BitmapList_Create(void); 00036 geBoolean BitmapList_Destroy(BitmapList *pList); 00037 00038 geBoolean BitmapList_SetGamma(BitmapList *pList, geFloat Gamma); 00039 00040 geBoolean BitmapList_AttachAll(BitmapList *pList, DRV_Driver *Drivera, geFloat Gamma); 00041 geBoolean BitmapList_DetachAll(BitmapList *pList); 00042 00043 // _Add & _Remove do NOT return Ok/NOk 00044 geBoolean BitmapList_Add(BitmapList *pList, geBitmap *Bitmap); // returns Was It New ? 00045 geBoolean BitmapList_Remove(BitmapList *pList,geBitmap *Bitmap);// returns Was It Removed ? 00046 // _Add & _Remove also do not do any Attach or Detach 00047 00048 geBoolean BitmapList_Has(BitmapList *pList, geBitmap *Bitmap); 00049 00050 #ifndef NDEBUG 00051 int BitmapList_CountMembers(BitmapList *pList); 00052 int BitmapList_CountMembersAttached(BitmapList *pList); 00053 #endif 00054 00055 #ifdef __cplusplus 00056 } 00057 #endif 00058 #endif
1.3.2