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);
160 void PaintHighlight(
const Shape *s, uint32 frame, int32 x, int32 y,
bool trans,
bool mirrored, uint32 col32);
Definition: managed_surface.h:51
Definition: render_surface.h:37
void Paint(const Shape *s, uint32 frame, int32 x, int32 y, bool mirrored=false)
Paint a Shape.
Common::Rect32 getSurfaceDims() const
Get the Surface Dimensions.
void PaintInvisible(const Shape *s, uint32 frame, int32 x, int32 y, bool trans, bool mirrored)
Paint an Invisible Shape.
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)
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)
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...
Graphics::ManagedSurface * getRawSurface() const
Get a reference to the underlying surface that's being encapsulated.
Definition: render_surface.h:108
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 setClippingRect(const Common::Rect32 &)
Set Clipping Rectangle.
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 SetOrigin(int32 x, int32 y)
Set the Origin of the Surface.
void fillRect(const Common::Rect32 &r, uint32 color)
Fill the region with a color in the pixel format.
bool IsFlipped() const
Has the render surface been flipped?
void SetFlipped(bool flipped)
Flip the surface.
void fillBlended(uint32 rgba, const Common::Rect32 &r)
Fill the region doing alpha blending with a color in the TEX32_PACK_RGBA format.
bool EndPainting()
Finish paining to the buffer.
void fill32(uint32 rgb, const Common::Rect32 &r)
Fill the region with a color in the TEX32_PACK_RGB format.
void frameRect32(uint32 rgb, const Common::Rect32 &r)
Fill the region with a color in the TEX32_PACK_RGB format.
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
Common::Rect32 getClippingRect() const
Get Clipping Rectangle.
bool BeginPainting()
Begin painting to the buffer. MUST BE CALLED BEFORE DOING ANYTHING TO THE SURFACE!
void frameRect(const Common::Rect32 &r, uint32 color)
Fill the region with a color in the pixel format.
void PaintTranslucent(const Shape *s, uint32 frame, int32 x, int32 y, bool mirrored=false)
Paint a Translucent Shape.
void GetOrigin(int32 &x, int32 &y) const
Set the Origin of the Surface.