22#ifndef HOLLYWOOD_RUNAWAY_GRAPHICS_H
23#define HOLLYWOOD_RUNAWAY_GRAPHICS_H
25#include "common/array.h"
26#include "common/path.h"
27#include "common/rect.h"
28#include "graphics/managed_surface.h"
46 kRunawayScreenWidth = 1024,
47 kRunawayScreenHeight = 768,
48 kRunawayViewportHeight = 600,
49 kRunawayViewportTop = (kRunawayScreenHeight - kRunawayViewportHeight) / 2
56 bool load(
ChunkArchive &archive, uint chunk, uint frames);
59 uint frameCount()
const {
return _frames; }
62 bool validate(uint frames);
72 kCabin, kMuseumInterior, kMuseumHall,
73 kChapters12, kChapters12Alternate, kCabinAlternate, kChapters456, kChapters456Alternate
81 int16 depthY[10] = {0, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767};
82 byte light[3] = {100, 100, 100};
83 bool antialias =
true;
85 bool load(Model model = kCabin);
86 bool loadChapter(
byte chapter,
bool alternate);
87 bool setFrame(uint facing, uint frame,
int headFrame = -1);
88 bool loadAction(uint chunk, uint frames);
89 bool setActionFrame(uint frame);
93 bool sunlit =
false,
bool antialias =
true)
const;
98 enum { kHeadHeight = 148, kFacings = 8, kFrames = 19,
99 kHeadFacings = 6, kHeadFrames = 40 };
100 uint _width = 345, _height = 518;
101 int _anchorX = 168, _anchorY = 434;
102 bool _museum =
false;
104 bool decodeFrame(
const Common::Array<byte> &bank,
const byte *descriptor, uint end,
bool head);
110 uint16 _palette[256];
112 int _loadedModel = -1;
Definition: managed_surface.h:51
Definition: resource.h:59
Definition: graphics.h:69
Definition: graphics.h:54
Definition: graphics.h:76