Files
haiku-beta6/headers/private/servers/app/BitmapManager.h
T

43 lines
790 B
C++
Raw Normal View History

/*
* Copyright 2001-2005, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* DarkWyrm <[email protected]>
*/
2003-07-25 15:44:59 +00:00
#ifndef BITMAP_MANAGER_H_
#define BITMAP_MANAGER_H_
2003-07-25 15:44:59 +00:00
#include <GraphicsDefs.h>
#include <List.h>
#include <Locker.h>
2003-07-25 15:44:59 +00:00
#include <OS.h>
2005-06-23 23:14:40 +00:00
#include <Rect.h>
#include "BGet++.h"
2003-07-25 15:44:59 +00:00
class ServerBitmap;
2005-06-23 23:14:40 +00:00
class BitmapManager {
public:
BitmapManager();
virtual ~BitmapManager();
ServerBitmap* CreateBitmap(BRect bounds, color_space space,
int32 flags, int32 bytesPerRow = -1,
screen_id screen = B_MAIN_SCREEN_ID);
void DeleteBitmap(ServerBitmap* bitmap);
protected:
BList fBitmapList;
int8* fBuffer;
BLocker fLock;
AreaPool fMemPool;
2003-07-25 15:44:59 +00:00
};
extern BitmapManager *gBitmapManager;
2003-07-25 15:44:59 +00:00
#endif /* BITMAP_MANAGER_H_ */