#include <celobj32.h>
Public Member Functions | |
CelObjView (const GuiResourceId viewId, const int16 loopNo, const int16 celNo) | |
void | draw (Buffer &target, const Common::Rect &targetRect, const Common::Point &scaledPosition, bool mirrorX, const Ratio &scaleX, const Ratio &scaleY) |
CelObjView * | duplicate () const override |
const SciSpan< const byte > | getResPointer () const override |
Common::Point | getLinkPosition (const int16 linkId) const |
Public Member Functions inherited from Sci::CelObj | |
void | draw (Buffer &target, const ScreenItem &screenItem, const Common::Rect &targetRect) const |
virtual void | draw (Buffer &target, const ScreenItem &screenItem, const Common::Rect &targetRect, const bool mirrorX) |
virtual void | draw (Buffer &target, const Common::Rect &targetRect, const Common::Point &scaledPosition, const bool mirrorX) |
void | drawTo (Buffer &target, const Common::Rect &targetRect, const Common::Point &scaledPosition, const Ratio &scaleX, const Ratio &scaleY) const |
virtual uint8 | readPixel (const uint16 x, const uint16 y, const bool mirrorX) const |
void | submitPalette () const |
Static Public Member Functions | |
static int16 | getNumLoops (const GuiResourceId viewId) |
static int16 | getNumCels (const GuiResourceId viewId, const int16 loopNo) |
Static Public Member Functions inherited from Sci::CelObj | |
static void | init () |
static void | deinit () |
Additional Inherited Members | |
Public Attributes inherited from Sci::CelObj | |
CelInfo32 | _info |
uint32 | _celHeaderOffset |
uint32 | _hunkPaletteOffset |
uint16 | _width |
uint16 | _height |
Common::Point | _origin |
uint16 | _xResolution |
uint16 | _yResolution |
uint8 | _skipColor |
bool | _transparent |
CelCompressionType | _compressionType |
bool | _remap |
bool | _mirrorX |
bool | _isMacSource |
Static Public Attributes inherited from Sci::CelObj | |
static CelScaler * | _scaler |
Protected Member Functions inherited from Sci::CelObj | |
int | searchCache (const CelInfo32 &celInfo, int *nextInsertIndex) const |
void | putCopyInCache (int index) const |
Protected Attributes inherited from Sci::CelObj | |
bool | _drawMirrored |
Static Protected Attributes inherited from Sci::CelObj | |
static bool | _drawBlackLines |
static int | _nextCacheId |
static CelCache * | _cache |
A CelObjView is the drawing primitive for a View type resource. Each CelObjView corresponds to a single cel within a single loop of a view.
void Sci::CelObjView::draw | ( | Buffer & | target, |
const Common::Rect & | targetRect, | ||
const Common::Point & | scaledPosition, | ||
bool | mirrorX, | ||
const Ratio & | scaleX, | ||
const Ratio & | scaleY | ||
) |
Draws the cel to the target buffer using the positioning, mirroring, and scaling information from the provided arguments.
|
overridevirtual |
Creates a copy of this cel on the free store and returns a pointer to the new object. The new cel will point to a shared copy of bitmap/resource data.
Implements Sci::CelObj.
|
overridevirtual |
Retrieves a pointer to the raw resource data for this cel. This method cannot be used with a CelObjColor.
Implements Sci::CelObj.