22 #ifndef SHERLOCK_SURFACE_H 23 #define SHERLOCK_SURFACE_H 25 #include "common/rect.h" 26 #include "common/platform.h" 27 #include "graphics/screen.h" 28 #include "sherlock/fonts.h" 29 #include "sherlock/image_file.h" 33 #define SCALE_THRESHOLD 0x100 34 #define TRANSPARENCY 255 75 virtual void SHbitmapBlitFrom(
const byte *src,
int width,
int height,
int pitchSrc,
const Common::Point &pt,
76 int overrideColor = 0);
82 bool flipped =
false,
int overrideColor = 0,
int scaleVal = SCALE_THRESHOLD);
88 bool flipped =
false,
int overrideColor = 0,
int scaleVal = SCALE_THRESHOLD);
100 virtual uint16
width()
const {
return this->
w; }
105 virtual uint16
height()
const {
return this->
h; }
void writeFancyString(const Common::String &str, const Common::Point &pt, uint overrideColor1, uint overrideColor2)
Definition: surface.h:118
void addDirtyRect(const Common::Rect &r) override
Definition: surface.h:124
virtual void SHblitFrom(const Graphics::Surface &src)
Definition: surface.h:57
int16 & w
Definition: managed_surface.h:117
virtual void SHblitFrom(const Graphics::Surface &src, const Common::Point &destPos, const Common::Rect &srcBounds)
Definition: surface.h:71
virtual void SHblitFrom(const Graphics::Surface &src, const Common::Point &destPos)
Definition: surface.h:64
Definition: animation.h:29
virtual void SHtransBlitFrom(const ImageFrame &src, const Common::Point &pt, bool flipped=false, int overrideColor=0, int scaleVal=0x100)
Definition: image_file.h:36
void blitFrom(const Surface &src, const Palette *srcPalette=nullptr)
int16 & h
Definition: managed_surface.h:118
virtual uint16 width() const
Definition: surface.h:100
void writeString(const Common::String &str, const Common::Point &pt, uint overrideColor)
virtual uint16 height() const
Definition: surface.h:105
void fillRect(Common::Rect r, uint32 color)
Definition: managed_surface.h:754
virtual void SHfillRect(const Common::Rect &r, uint color)
Definition: surface.h:93