22 #ifndef ULTIMA8_GFX_RENDERSURFACE_H 23 #define ULTIMA8_GFX_RENDERSURFACE_H 25 #include "graphics/managed_surface.h" 26 #include "ultima/ultima8/misc/rect.h" 57 DisposeAfterUse::Flag _disposeAfterUse;
60 void SetPixelsPointer();
122 void drawLine(int32 sx, int32 sy, int32 ex, int32 ey, uint32 color);
125 void fill32(uint32 rgb, int32 sx, int32 sy, int32 w, int32 h) {
139 void drawLine32(uint32 rgb, int32 sx, int32 sy, int32 ex, int32 ey);
154 void Paint(
const Shape *s, uint32 frame, int32 x, int32 y,
bool mirrored =
false);
160 void PaintInvisible(
const Shape *s, uint32 frame, int32 x, int32 y,
bool trans,
bool mirrored);
163 void PaintHighlight(
const Shape *s, uint32 frame, int32 x, int32 y,
bool trans,
bool mirrored, uint32 col32);
Definition: managed_surface.h:51
void frameRect(const Rect &r, uint32 color)
Fill the region with a color in the pixel 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:125
void SetClippingRect(const Rect &)
Set Clipping Rectangle.
void Paint(const Shape *s, uint32 frame, int32 x, int32 y, bool mirrored=false)
Paint a Shape.
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) ...
void GetSurfaceDims(Rect &) const
Get the Surface Dimensions.
Graphics::ManagedSurface * getRawSurface() const
Get a reference to the underlying surface that's being encapsulated.
Definition: render_surface.h:111
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...
Definition: render_surface.h:40
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 GetClippingRect(Rect &) const
Get Clipping Rectangle.
void SetFlipped(bool flipped)
Flip the surface.
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 fillRect(const Rect &r, uint32 color)
Fill the region with a color in the pixel format.
void SetOrigin(int32 x, int32 y)
Set the Origin of the Surface.
void fillBlended(uint32 rgba, const Rect &r)
Fill the region doing alpha blending with a color in the TEX32_PACK_RGBA format.
void frameRect32(uint32 rgb, const Rect &r)
Fill the region with a color in the TEX32_PACK_RGB format.
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)