22 #ifndef ASYLUM_SYSTEM_GRAPHICS_H 23 #define ASYLUM_SYSTEM_GRAPHICS_H 25 #include "common/rect.h" 26 #include "common/array.h" 28 #include "graphics/surface.h" 30 #include "asylum/shared.h" 44 uint16 getWidth() {
return surface.
w; }
45 uint16 getHeight() {
return surface.
h; }
53 return Common::Rect(x, y, x + getWidth(), y + getHeight());
72 memset(&tag, 0,
sizeof(tag));
85 bool load(ResourceId
id);
90 void copyFrameToDest(byte *dest, uint32 frame);
95 void copySpriteToDest(byte *dest, uint32 frame);
98 ResourceId getResourceId() {
return _resourceId; }
99 uint32 count() {
return _frames.size(); }
105 static uint32 getFrameCount(
AsylumEngine *engine, ResourceId
id);
111 ResourceId _resourceId;
115 void init(byte *data, int32 size);
121 #endif // ASYLUM_SYSTEM_GRAPHICS_H
int16 h
Definition: surface.h:76
int16 w
Definition: surface.h:71
Definition: graphics.h:60
Definition: graphics.h:36
Definition: graphics.h:58