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);
98 ResourceId getResourceId() {
return _resourceId; }
99 uint32 count() {
return _frames.size(); }
102 ResourceData getData() {
return _data; }
105 static uint32 getFrameCount(AsylumEngine *engine, ResourceId
id);
106 static Common::Rect getFrameRect(AsylumEngine *engine, ResourceId
id, uint32 index);
111 ResourceId _resourceId;
115 void init(
byte *data, int32 size);
Definition: graphics.h:58
void copyFrameToDest(byte *dest, uint32 frame)
void copySpriteToDest(byte *dest, uint32 frame)
Definition: graphics.h:36
Definition: graphics.h:60
int16 h
Definition: surface.h:76
int16 w
Definition: surface.h:71