ScummVM API documentation
Ultima::Ultima8::SoftRenderSurface< uintX > Class Template Reference
Inheritance diagram for Ultima::Ultima8::SoftRenderSurface< uintX >:
Ultima::Ultima8::BaseSoftRenderSurface Ultima::Ultima8::RenderSurface

Public Member Functions

 SoftRenderSurface (Graphics::ManagedSurface *managed)
 
void Fill32 (uint32 rgb, int32 sx, int32 sy, int32 w, int32 h) override
 Fill buffer (using a RGB colour)
 
void FillAlpha (uint8 alpha, int32 sx, int32 sy, int32 w, int32 h) override
 Fill alpha channel.
 
void FillBlended (uint32 rgba, int32 sx, int32 sy, int32 w, int32 h) override
 Fill the region doing alpha blending.
 
void Paint (const Shape *s, uint32 frame, int32 x, int32 y, bool untformed_pal=false) override
 Paint a Shape.
 
void PaintNoClip (const Shape *s, uint32 frame, int32 x, int32 y, bool untformed_pal=false) override
 Paint a Shape without clipping.
 
void PaintTranslucent (const Shape *s, uint32 frame, int32 x, int32 y, bool untformed_pal=false) override
 Paint a Translucent Shape.
 
void PaintMirrored (const Shape *s, uint32 frame, int32 x, int32 y, bool trans=false, bool untformed_pal=false) override
 Paint a Mirrored Shape.
 
void PaintInvisible (const Shape *s, uint32 frame, int32 x, int32 y, bool trans, bool mirrored, bool untformed_pal=false) override
 Paint an Invisible Shape.
 
void PaintHighlight (const Shape *s, uint32 frame, int32 x, int32 y, bool trans, bool mirrored, uint32 col32, bool untformed_pal=false) override
 Paint a Highlighted Shape of using the 32 Bit Colour col32 (0xAARRGGBB Alpha is blend level)
 
void PaintHighlightInvis (const Shape *s, uint32 frame, int32 x, int32 y, bool trans, bool mirrored, uint32 col32, bool untformed_pal=false) override
 Paint a Invisible Highlighted Shape of using the 32 Bit Colour col32 (0xAARRGGBB Alpha is blend level)
 
void DrawLine32 (uint32 rgb, int32 sx, int32 sy, int32 ex, int32 ey) override
 
void Blit (const Graphics::ManagedSurface *, int32 sx, int32 sy, int32 w, int32 h, int32 dx, int32 dy, bool alpha_blend=false) override
 Blit a region from a Texture (Alpha == 0 -> skipped)
 
void FadedBlit (const Graphics::ManagedSurface *, int32 sx, int32 sy, int32 w, int32 h, int32 dx, int32 dy, uint32 col32, bool alpha_blend=false) override
 Blit a region from a Texture with a Colour blend (AlphaTex == 0 -> skipped. AlphaCol32 -> Blend Factors)
 
void MaskedBlit (const Graphics::ManagedSurface *, int32 sx, int32 sy, int32 w, int32 h, int32 dx, int32 dy, uint32 col32, bool alpha_blend=false) override
 Blit a region from a Texture with a Colour blend masked based on DestAlpha (AlphaTex == 0 || AlphaDest == 0 -> skipped. AlphaCol32 -> Blend Factors)
 
- Public Member Functions inherited from Ultima::Ultima8::BaseSoftRenderSurface
bool BeginPainting () override
 Begin painting to the buffer. MUST BE CALLED BEFORE DOING ANYTHING TO THE SURFACE!
 
bool EndPainting () override
 Finish paining to the buffer.
 
void SetOrigin (int32 x, int32 y) override
 Set the Origin of the Surface.
 
void GetOrigin (int32 &x, int32 &y) const override
 Set the Origin of the Surface.
 
void GetSurfaceDims (Rect &) const override
 Get the Surface Dimensions.
 
void GetClippingRect (Rect &) const override
 Get Clipping Rectangle.
 
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 SetFlipped (bool flipped) override
 Flip the surface.
 
bool IsFlipped () const override
 Has the render surface been flipped?
 
void CreateNativePalette (Palette *palette, int maxindex=0) override
 
Graphics::ManagedSurfacegetRawSurface () const override
 Get a reference to the underlying surface that's being encapsulated.
 

Additional Inherited Members

- Static Public Member Functions inherited from Ultima::Ultima8::RenderSurface
static RenderSurfaceSetVideoMode (uint32 width, uint32 height, int bpp)
 Create a standard RenderSurface.
 
static RenderSurfaceCreateSecondaryRenderSurface (uint32 width, uint32 height)
 Create a SecondaryRenderSurface with an associated Texture object.
 
static Graphics::PixelFormat getPixelFormat ()
 
- Static Public Attributes inherited from Ultima::Ultima8::RenderSurface
static U8PixelFormat_format
 
static uint8 _gamma10toGamma22 [256]
 
static uint8 _gamma22toGamma10 [256]
 
- Protected Member Functions inherited from Ultima::Ultima8::BaseSoftRenderSurface
 BaseSoftRenderSurface (Graphics::ManagedSurface *)
 
void SetPixelsPointer ()
 
- Protected Attributes inherited from Ultima::Ultima8::BaseSoftRenderSurface
uint8 * _pixels
 
uint8 * _pixels00
 
int _bytesPerPixel
 
int _bitsPerPixel
 
int _formatType
 
int32 _ox
 
int32 _oy
 
int32 _width
 
int32 _height
 
int32 _pitch
 
bool _flipped
 
Rect _clipWindow
 
uint32 _lockCount
 
Graphics::ManagedSurface_surface
 

The documentation for this class was generated from the following file: