Page MenuHomePhabricator (Chris)

bitmap.h
No OneTemporary

Authored By
Unknown
Size
788 B
Referenced Files
None
Subscribers
None

bitmap.h

#include <allegro.h>
#ifdef _WIN32
#include <winalleg.h>
#endif
/*
#ifdef _WIN32
#define BITMAP dummyBITMAP
#include <windows.h>
#undef BITMAP
#endif
*/
struct BITMAP;
struct BitmapData{
BitmapData():
bitmap(0),
destroy(true){}
BitmapData(BITMAP * bitmap):
bitmap(bitmap),
destroy(true){
}
~BitmapData(){
if (bitmap != NULL && destroy){
destroy_bitmap(bitmap);
}
}
void setDestroy(bool b){
destroy = b;
}
inline BITMAP * getBitmap() const {
return bitmap;
}
inline void setBitmap(BITMAP * b) {
bitmap = b;
}
BITMAP * bitmap;
bool destroy;
};
namespace Graphics{
typedef int INTERNAL_COLOR;
}
#include "../software-renderer/bitmap.h"

File Metadata

Mime Type
text/x-c++
Expires
Sun, Nov 15, 2:51 PM (6 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152412
Default Alt Text
bitmap.h (788 B)

Event Timeline