Page MenuHomePhabricator (Chris)

bitmap.h
No OneTemporary

Authored By
Unknown
Size
772 B
Referenced Files
None
Subscribers
None

bitmap.h

struct SDL_Surface;
struct BitmapData{
BitmapData():
surface(0),
clip_left(0),
clip_right(0),
clip_top(0),
clip_bottom(0){}
inline SDL_Surface * getSurface() const {
return surface;
}
inline void setClip(int left, int top, int right, int bottom) const {
clip_left = left;
clip_right = right;
clip_top = top;
clip_bottom = bottom;
}
bool isClipped(int x, int y) const {
return (x < clip_left ||
y < clip_top ||
x >= clip_right ||
y >= clip_bottom);
}
void setSurface(SDL_Surface * surface);
SDL_Surface * surface;
mutable int clip_left, clip_right;
mutable int clip_top, clip_bottom;
};

File Metadata

Mime Type
text/x-c
Expires
Sun, Nov 15, 10:35 AM (6 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
145644
Default Alt Text
bitmap.h (772 B)

Event Timeline