Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632645
bitmap.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
788 B
Referenced Files
None
Subscribers
None
bitmap.h
View Options
#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
Details
Attached
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)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline