22 #ifndef ULTIMA8_GRAPHICS_BASESOFTRENDERSURFACE_H 23 #define ULTIMA8_GRAPHICS_BASESOFTRENDERSURFACE_H 25 #include "ultima/ultima8/graphics/render_surface.h" 26 #include "ultima/ultima8/misc/rect.h" 27 #include "graphics/managed_surface.h" 50 int32 _width, _height;
66 void SetPixelsPointer() {
67 uint8 *pix00 = _pixels00;
70 pix00 += -_pitch * (_height - 1);
73 _pixels = pix00 + _ox * _bytesPerPixel + _oy * _pitch;
99 void SetOrigin(int32 x, int32 y)
override;
102 void GetOrigin(int32 &x, int32 &y)
const override;
138 void CreateNativePalette(
Palette *palette,
int maxindex = 0)
override;
Definition: managed_surface.h:45
void SetClippingRect(const Rect &) override
Set Clipping Rectangle.
int16 CheckClipped(const Rect &) const override
Check Clipped. -1 if off screen, 0 if not clipped, 1 if clipped.
void SetOrigin(int32 x, int32 y) override
Set the Origin of the Surface.
Definition: render_surface.h:64
Definition: base_soft_render_surface.h:37
void GetSurfaceDims(Rect &) const override
Get the Surface Dimensions.
Definition: detection.h:27
bool BeginPainting() override
Begin painting to the buffer. MUST BE CALLED BEFORE DOING ANYTHING TO THE SURFACE! ...
void GetClippingRect(Rect &) const override
Get Clipping Rectangle.
bool EndPainting() override
Finish paining to the buffer.
bool IsFlipped() const override
Has the render surface been flipped?
Graphics::ManagedSurface * getRawSurface() const override
Get a reference to the underlying surface that's being encapsulated.
Definition: base_soft_render_surface.h:140
void GetOrigin(int32 &x, int32 &y) const override
Set the Origin of the Surface.
void SetFlipped(bool flipped) override
Flip the surface.