27 #define _DEFAULT_WIDTH 160 28 #define _DEFAULT_HEIGHT 168 46 enum AgiPictureVersion {
54 enum AgiPictureFlags {
56 kPicFCircle = (1 << 1),
58 kPicFf3Stop = (1 << 3),
59 kPicFf3Cont = (1 << 4),
60 kPicFTrollMode = (1 << 5)
73 int16 getResourceNr()
const {
return _resourceNr; };
76 void xCorner(
bool skipOtherCoords =
false);
77 void yCorner(
bool skipOtherCoords =
false);
81 bool getNextParamByte(byte &b);
85 void putVirtPixel(
int x,
int y);
87 void decodePicture(int16 resourceNr,
bool clearScreen,
bool agi256 =
false, int16 width = _DEFAULT_WIDTH, int16 height = _DEFAULT_HEIGHT);
88 void decodePictureFromBuffer(byte *data, uint32 length,
bool clearScreen, int16 width = _DEFAULT_WIDTH, int16 height = _DEFAULT_HEIGHT);
89 void unloadPicture(
int picNr);
92 void drawPictureC64();
94 void drawPictureV15();
96 void drawPictureAGI256();
99 void draw_SetPriority();
100 void draw_SetNibbleColor();
101 void draw_SetNibblePriority();
103 void draw_Line(int16 x1, int16 y1, int16 x2, int16 y2);
104 void draw_LineShort();
105 void draw_LineAbsolute();
107 bool draw_FillCheck(int16 x, int16 y);
108 void draw_Fill(int16 x, int16 y);
113 void showPic(int16 x, int16 y, int16 pic_width, int16 pic_height);
114 void showPicWithTransition();
116 void plotPattern(
int x,
int y);
118 void setPattern(uint8 code, uint8 num);
120 void setPictureVersion(AgiPictureVersion version);
121 void setPictureData(uint8 *data,
int len = 4096);
123 void setPictureFlags(
int flags) { _flags = flags; }
127 void setOffset(
int offX,
int offY) {
132 void setDimensions(
int w,
int h) {
142 bool _dataOffsetNibble;
153 AgiPictureVersion _pictureVersion;
uint8 * rdata
Definition: picture.h:35
Definition: graphics.h:58
uint32 flen
Definition: picture.h:34