22 #ifndef ULTIMA8_GFX_RENDERSURFACE_H 23 #define ULTIMA8_GFX_RENDERSURFACE_H 25 #include "graphics/managed_surface.h" 54 DisposeAfterUse::Flag _disposeAfterUse;
57 void SetPixelsPointer();
119 void drawLine(int32 sx, int32 sy, int32 ex, int32 ey, uint32 color);
122 void fill32(uint32 rgb, int32 sx, int32 sy, int32 w, int32 h) {
136 void drawLine32(uint32 rgb, int32 sx, int32 sy, int32 ex, int32 ey);
151 void Paint(
const Shape *s, uint32 frame, int32 x, int32 y,
bool mirrored =
false);
157 void PaintInvisible(
const Shape *s, uint32 frame, int32 x, int32 y,
bool trans,
bool mirrored);
160 void PaintHighlight(
const Shape *s, uint32 frame, int32 x, int32 y,
bool trans,
bool mirrored, uint32 col32);
Definition: managed_surface.h:51
void fill32(uint32 rgb, int32 sx, int32 sy, int32 w, int32 h)
Fill the region with a color in the TEX32_PACK_RGB format.
Definition: render_surface.h:122
void frameRect(const Common::Rect32 &r, uint32 color)
Fill the region with a color in the pixel format.
void Paint(const Shape *s, uint32 frame, int32 x, int32 y, bool mirrored=false)
Paint a Shape.
void fillBlended(uint32 rgba, const Common::Rect32 &r)
Fill the region doing alpha blending with a color in the TEX32_PACK_RGBA format.
void MaskedBlit(const Graphics::ManagedSurface &src, const Common::Rect &srcRect, int32 dx, int32 dy, uint32 col32, bool alpha_blend=false)
Blit a region from a Texture with a Colour blend masked based on DestAlpha (AlphaTex == 0 || AlphaDes...
void PaintHighlight(const Shape *s, uint32 frame, int32 x, int32 y, bool trans, bool mirrored, uint32 col32)
Paint a Highlighted Shape of using the 32 Bit Colour col32 (0xAARRGGBB Alpha is blend level) ...
Graphics::ManagedSurface * getRawSurface() const
Get a reference to the underlying surface that's being encapsulated.
Definition: render_surface.h:108
void FadedBlit(const Graphics::ManagedSurface &src, const Common::Rect &srcRect, int32 dx, int32 dy, uint32 col32, bool alpha_blend=false)
Blit a region from a Texture with a Colour blend (AlphaTex == 0 -> skipped. AlphaCol32 -> Blend Facto...
void PaintHighlightInvis(const Shape *s, uint32 frame, int32 x, int32 y, bool trans, bool mirrored, uint32 col32)
Paint a Invisible Highlighted Shape of using the 32 Bit Colour col32 (0xAARRGGBB Alpha is blend level...
void frameRect32(uint32 rgb, const Common::Rect32 &r)
Fill the region with a color in the TEX32_PACK_RGB format.
Definition: render_surface.h:37
bool EndPainting()
Finish paining to the buffer.
void PaintTranslucent(const Shape *s, uint32 frame, int32 x, int32 y, bool mirrored=false)
Paint a Translucent Shape.
Definition: detection.h:27
void fillRect(const Common::Rect32 &r, uint32 color)
Fill the region with a color in the pixel format.
void SetFlipped(bool flipped)
Flip the surface.
Common::Rect32 getClippingRect() const
Get Clipping Rectangle.
Common::Rect32 getSurfaceDims() const
Get the Surface Dimensions.
void setClippingRect(const Common::Rect32 &)
Set Clipping Rectangle.
bool IsFlipped() const
Has the render surface been flipped?
bool BeginPainting()
Begin painting to the buffer. MUST BE CALLED BEFORE DOING ANYTHING TO THE SURFACE! ...
void PaintInvisible(const Shape *s, uint32 frame, int32 x, int32 y, bool trans, bool mirrored)
Paint an Invisible Shape.
void SetOrigin(int32 x, int32 y)
Set the Origin of the Surface.
void GetOrigin(int32 &x, int32 &y) const
Set the Origin of the Surface.
void Blit(const Graphics::ManagedSurface &src, const Common::Rect &srcRect, int32 dx, int32 dy, bool alpha_blend=false)
Blit a region from a Texture (Alpha == 0 -> skipped)