resonance 1.0.1
Loading...
Searching...
No Matches
ACanvasLin32 Class Reference

Canvas over a linear rectangle of 32 bit pixels. More...

#include <acanvaslin32.h>

Inheritance diagram for ACanvasLin32:
Collaboration diagram for ACanvasLin32:

Public Member Functions

 ACanvasLin32 (const ABitmap &bitmap)
 Adopt a pixel description.
void SetAlphaValues (unsigned int nColorKey)
 Rewrite every alpha byte of the pixel rectangle from a colour key.
void DrawPixelU (int nX, int nY)
 Store the pen colour at one point, with no clip test.
void DrawPixel32U (int nX, int nY, unsigned int nColor)
 Store one 8888 colour at one point, with no clip test.
unsigned int GetPixel32U (int nX, int nY)
 Read one point as an 8888 colour, with no clip test.
void DrawHorzLineU (int nY, int nLeft, int nRight)
 Fill part of one row with the pen colour, with no clip test.
void DrawVertLineU (int nX, int nTop, int nBottom)
 Fill part of one column with the pen colour, with no clip test.
void DrawRectU (ARect rect)
 Fill a rectangle with the pen colour, with no clip test.
void DrawTmapRow8U (int nY, int nLeft, int nRight, const ABitmap *pSource, APoint *pSourcePosition, const APoint *pSourceStep)
 Fill part of one row by sampling an indexed source bitmap along a fixed step.
void DrawBitmapLin4U (const ABitmap &source, int nX, int nY)
 Copy a four bit source bitmap, with no clip test.
void DrawBitmapLin8U (const ABitmap &source, int nX, int nY)
 Copy an eight bit source bitmap, with no clip test.
void DrawBitmapLin32U (const ABitmap &source, int nX, int nY)
 Copy a 32 bit source bitmap, with no clip test.
void DrawClutBitmapRowLin8U (const ARowInfo &span, const unsigned char *pRemap)
 Store one row of palette indices through a remap table.
void DrawScaledBitmapRowLin8U (const AScaledRowInfo &span)
 Store one row of palette indices sampled along a fixed step.
void DrawScaledClutBitmapRowLin8U (const AScaledRowInfo &span, const unsigned char *pRemap)
 Store one row of palette indices sampled along a fixed step, through a remap table.
Public Member Functions inherited from ACanvas32
 ACanvas32 (const ABitmap &bitmap)
 Adopt a pixel description.
void SetColor8 (int nIndex)
 Set the pen colour from a palette index.
void SetColor15 (unsigned short nColor)
 Discard a 1555 pen colour.
void SetColor24 (const unsigned char *pRGB)
 Set the pen colour from three bytes in red, green, blue order, with full alpha.
void SetColor32 (unsigned int nColor)
 Set the pen colour from an 8888 word.
void SetColorNative (unsigned int nColor)
 Set the pen colour from a native value, which on this canvas is an 8888 word.
int GetColor8 ()
 Return the palette index nearest the pen colour.
unsigned short GetColor15 ()
 Return the pen colour packed to 1555, with the alpha bit set.
void GetColor24 (unsigned char *pRGB)
 Store the pen colour as three bytes in red, green, blue order.
unsigned int GetColor32 ()
 Return the pen colour as an 8888 word.
unsigned int GetColorNative ()
 Return the pen colour in the native width, which on this canvas is an 8888 word.
void DrawPixel8U (int nX, int nY, int nIndex)
 Store one palette index at one point, with no clip test.
void DrawPixel15U (int nX, int nY, unsigned short nColor)
 Store one 1555 colour at one point, with no clip test.
void DrawPixel24U (int nX, int nY, const unsigned char *pRGB)
 Store one red, green, blue triple at one point, with no clip test.
void DrawPixelNativeU (int nX, int nY, unsigned int nColor)
 Store one native value at one point, with no clip test.
int GetPixel8U (int nX, int nY)
 Read one point as a palette index, with no clip test.
unsigned short GetPixel15U (int nX, int nY)
 Read one point as a 1555 colour, with no clip test.
void GetPixel24U (int nX, int nY, unsigned char *pRGB)
 Read one point into three bytes in red, green, blue order, with no clip test.
unsigned int GetPixelNativeU (int nX, int nY)
 Read one point in the native width, with no clip test.
Public Member Functions inherited from ACanvas
 ACanvas (const ABitmap &bitmap)
 Adopt a pixel description.
void QuantizeToRamps (ACanvas &dest, const std::vector< const Color * > &colors) const
 Reduce this canvas's 32 bit pixels to palette indices over ramps of the given colours.
void DrawBitmap (const ABitmap &source, int nX, int nY)
 Copy a source bitmap, clipped, choosing the slot by source format.
virtual ~ACanvas ()
 Release the canvas.
virtual void DrawPixel (int nX, int nY)
 Store the pen colour at one point.
virtual void DrawPixel8 (int nX, int nY, int nIndex)
 Store one palette index at one point, clipped.
virtual void DrawPixel15 (int nX, int nY, unsigned short nColor)
 Store one 1555 colour at one point, clipped.
virtual void DrawPixel24 (int nX, int nY, const unsigned char *pRGB)
 Store one red, green, blue triple at one point, clipped.
virtual void DrawPixel32 (int nX, int nY, unsigned int nColor)
 Store one 8888 colour at one point, clipped.
virtual void DrawPixelNative (int nX, int nY, unsigned int nColor)
 Store one value in the canvas storage width at one point, clipped.
virtual int GetPixel8 (int nX, int nY)
 Read one point as a palette index, clipped.
virtual unsigned short GetPixel15 (int nX, int nY)
 Read one point as a 1555 colour, clipped.
virtual void GetPixel24 (int nX, int nY, unsigned char *pRGB)
 Read one point into three bytes in red, green, blue order, clipped.
virtual unsigned int GetPixel32 (int nX, int nY)
 Read one point as an 8888 colour, clipped.
virtual unsigned int GetPixelNative (int nX, int nY)
 Read one point in the canvas storage width, clipped.
virtual void DrawHorzLine (int nY, int nLeft, int nRight)
 Fill part of one row with the pen colour.
virtual void DrawVertLine (int nX, int nTop, int nBottom)
 Fill part of one column with the pen colour, clamped to the clip rectangle.
virtual void DrawRect (ARect rect)
 Fill a rectangle with the pen colour.
virtual void DrawBoxU (ARect rect)
 Draw the four edges of a rectangle in the pen colour, with no clip test.
virtual void DrawBox (ARect rect)
 Draw the four edges of a rectangle in the pen colour, through the clipped fills.
virtual void DrawClutRectU (ARect rect, const unsigned char *pRemap)
 Rewrite every palette index inside a rectangle through a remap table.
virtual void DrawLineU (int nX0, int nY0, int nX1, int nY1)
 Draw a line in the pen colour, with no clip test.
virtual void DrawLine (int nX0, int nY0, int nX1, int nY1)
 Draw a line in the pen colour, clipped.
virtual void DrawBitmapLin4 (const ABitmap &source, int nX, int nY)
 Copy a four bit source bitmap, clipped.
virtual void DrawBitmapLin8 (const ABitmap &source, int nX, int nY)
 Copy an eight bit source bitmap, clipped.
virtual void DrawBitmapLin15U (const ABitmap &source, int nX, int nY)
 Copy a 1555 source bitmap, with no clip test.
virtual void DrawBitmapLin15 (const ABitmap &source, int nX, int nY)
 Copy a 1555 source bitmap, clipped.
virtual void DrawBitmapLin24U (const ABitmap &source, int nX, int nY)
 Copy a 24 bit source bitmap, with no clip test.
virtual void DrawBitmapLin24 (const ABitmap &source, int nX, int nY)
 Copy a 24 bit source bitmap, clipped.
virtual void DrawBitmapLin32 (const ABitmap &source, int nX, int nY)
 Copy a 32 bit source bitmap, clipped.
virtual void DrawBitmapRle8U (const ABitmap &source, int nX, int nY)
 Copy a run length encoded eight bit source bitmap, with no clip test.
virtual void DrawBitmapRle8 (const ABitmap &source, int nX, int nY)
 Copy a run length encoded eight bit source bitmap, clipped.
virtual void GetBitmapLin4 (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a four bit bitmap, clipped.
virtual void GetBitmapLin4U (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a four bit bitmap, with no clip test.
virtual void GetBitmapLin8 (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into an eight bit bitmap, clipped.
virtual void GetBitmapLin8U (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into an eight bit bitmap, with no clip test.
virtual void GetBitmapLin15 (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a 1555 bitmap, clipped.
virtual void GetBitmapLin15U (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a 1555 bitmap, with no clip test.
virtual void GetBitmapLin24 (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a 24 bit bitmap, clipped.
virtual void GetBitmapLin24U (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a 24 bit bitmap, with no clip test.
virtual void GetBitmapLin32 (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a 32 bit bitmap, clipped.
virtual void GetBitmapLin32U (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a 32 bit bitmap, with no clip test.
virtual void DrawCharU (int nCharCode, const AFont *pFont, int nX, int nY)
 Draw one glyph of a font, with no clip test.
virtual void DrawChar (int nCharCode, const AFont *pFont, int nX, int nY)
 Draw one glyph of a font, clipped.
virtual void DrawTextU (const char *pText, const AFont *pFont, int nX, int nY)
 Draw a null terminated string, with no clip test.
virtual void DrawText (const char *pText, const AFont *pFont, int nX, int nY)
 Draw a null terminated string, clipped.
virtual void DrawClutBitmapLin4U (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Copy a four bit source bitmap through a remap table.
virtual void DrawClutBitmapLin8U (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Copy an eight bit source bitmap through a remap table, one row at a time.
virtual void DrawBlendBitmapLin4U (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Copy a four bit source bitmap through a blend table.
virtual void DrawBlendBitmapLin8U (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Copy an eight bit source bitmap through a blend table.
virtual void DrawBlendBitmapRowLin8U (const ARowInfo &span, const unsigned char *const *ppBlend)
 Store one row of palette indices blended against the destination.
virtual void DrawScaledBitmapRowLin15U (const AScaledRowInfo &span)
 Store one row of 1555 colours sampled along a fixed step.
virtual void DrawScaledBitmapRowLin24U (const AScaledRowInfo &span)
 Store one row of red, green, blue triples sampled along a fixed step.
virtual void DrawScaledBitmapRowLin32U (const AScaledRowInfo &span)
 Store one row of 8888 colours sampled along a fixed step.
virtual void DrawScaledBlendBitmapRowLin8U (const AScaledRowInfo &span, const unsigned char *const *ppBlend)
 Store one row of palette indices sampled along a fixed step, blended against the destination.

Additional Inherited Members

Static Public Member Functions inherited from ACanvas
static ACanvas * NewCompatibleCanvas (const ABitmap &bitmap, bool bAllocatePixels)
 Construct the linear canvas subclass that draws a bitmap's format.
static ACanvas * NewCompatibleLinearCanvas (const ABitmap &bitmap)
 Construct a canvas over a fresh pixel rectangle shaped like a bitmap.
static ACanvas * SubCanvas (const ABitmap &source, int nX, int nY, int nWidth, int nHeight)
 Construct a canvas over a rectangle of a bitmap's pixels, sharing them.
Public Attributes inherited from ACanvas
ABitmap mBitmap
ARect mClip
Static Public Attributes inherited from ACanvas
static APalette * palDefault
 Palette every canvas falls back to when neither its bitmap nor its source supplies one.
static unsigned char tempBuff []
 One row of indices, shared by every block copy that has to expand a row before writing it.
Protected Member Functions inherited from ACanvas
unsigned char ClipCode (int nX, int nY) const
 Classify a point against the clip rectangle.
int ClipRle8Bitmap (const ABitmap &source, int *pnX, int *pnY, ARle8Reader *pReader, Rle8Clip *pSpan) const
 Clip a run length encoded copy against the clip rectangle.
int ClipLine (int *pnX0, int *pnY0, int *pnX1, int *pnY1) const
 Clip a line against the clip rectangle, rewriting both endpoints in place.
int ClipBitmap (ABitmap *pBitmap, int *pnX, int *pnY) const
 Clip a source bitmap and a destination position against the clip rectangle.
int ClipRect (ARect *pRect) const
 Intersect a rectangle with the clip rectangle in place.
void DrawClutRect (ARect rect, const unsigned char *pRemap)
 Rewrite the palette indices inside a rectangle through a remap table, clipped.
void DrawBitmapU (const ABitmap &source, int nX, int nY)
 Copy a source bitmap, with no clip test, choosing the slot by source format.
void DrawClutBitmapLin4 (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Clip against the clip rectangle and then copy a four bit source through a remap table.
void DrawClutBitmapLin8 (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Clip against the clip rectangle and then copy an eight bit source through a remap table.
void DrawBlendBitmapLin4 (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Clip against the clip rectangle and then copy a four bit source through a blend table.
void DrawBlendBitmapLin8 (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Clip against the clip rectangle and then copy an eight bit source through a blend table.
void DrawFlatConvexPolygon (const APolygon &polygon)
 Fill a convex polygon with its colour.
void DrawTmappedConvexPolygon (const APolygon &polygon)
 Fill a convex polygon by sampling its texture.
void DrawClutBitmapU (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Copy a source bitmap through a remap table, choosing the arm by source format.
void DrawClutBitmap (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Clip against the clip rectangle and then copy through a remap table.
void DrawClutBitmapRle8U (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Copy a run length encoded source through a remap table.
void DrawClutBitmapRle8 (const ABitmap &source, int nX, int nY, const unsigned char *pRemap)
 Clip and copy a run length encoded source through a remap table.
void DrawBlendBitmapU (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Copy a source bitmap through a table of blend tables, choosing the arm by source format.
void DrawBlendBitmap (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Clip against the clip rectangle and then copy through a table of blend tables.
void DrawBlendBitmapRle8U (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Copy a run length encoded source through a table of blend tables.
void DrawBlendBitmapRle8 (const ABitmap &source, int nX, int nY, const unsigned char *const *ppBlend)
 Clip and copy a run length encoded source through a table of blend tables.
void GetBitmapU (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a bitmap, choosing the slot by destination format.
void GetBitmap (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a bitmap, clipped, choosing the slot by destination format.
void ReadRectRle8 (const ABitmap &dest, int nX, int nY)
 Read a rectangle of the canvas into a run length encoded bitmap.
int ClipAndSetupScaledBitmap (const ABitmap &source, const ARect &rect, AScaledRowInfo *pBlit) const
 Prepare a stretched copy of a source bitmap into a destination rectangle.
void DrawScaledBitmap (const ABitmap &source, const ARect &rect)
 Stretch a source bitmap into a destination rectangle, choosing the arm by source format.
void DrawScaledBitmapLin4 (const ABitmap &source, const ARect &rect)
 Stretch a four bit source bitmap into a destination rectangle.
void DrawScaledBitmapLin8 (const ABitmap &source, const ARect &rect)
 Stretch an eight bit source bitmap into a destination rectangle, through DrawScaledBitmapRowLin8U().
void DrawScaledBitmapLin15 (const ABitmap &source, const ARect &rect)
 Stretch a 1555 source bitmap into a destination rectangle, through DrawScaledBitmapRowLin15U().
void DrawScaledBitmapLin24 (const ABitmap &source, const ARect &rect)
 Stretch a 24 bit source bitmap into a destination rectangle, through DrawScaledBitmapRowLin24U().
void DrawScaledBitmapLin32 (const ABitmap &source, const ARect &rect)
 Stretch a 32 bit source bitmap into a destination rectangle, through DrawScaledBitmapRowLin32U().
void DrawScaledBitmapRle8 (const ABitmap &source, const ARect &rect)
 Stretch a run length encoded source into a destination rectangle.
void DrawScaledClutBitmap (const ABitmap &source, const ARect &rect, const unsigned char *pRemap)
 Stretch an indexed source through a remap table, choosing the arm by source format.
void DrawScaledClutBitmapLin4 (const ABitmap &source, const ARect &rect, const unsigned char *pRemap)
 Stretch a four bit source through a remap table.
void DrawScaledClutBitmapLin8 (const ABitmap &source, const ARect &rect, const unsigned char *pRemap)
 Stretch an eight bit source through a remap table, through DrawScaledClutBitmapRowLin8U().
void DrawScaledClutBitmapRle8 (const ABitmap &source, const ARect &rect, const unsigned char *pRemap)
 Stretch a run length encoded source through a remap table.
void DrawScaledBlendBitmap (const ABitmap &source, const ARect &rect, const unsigned char *const *ppBlend)
 Stretch an indexed source blended against the destination, choosing the arm by source format.
void DrawScaledBlendBitmapLin8 (const ABitmap &source, const ARect &rect, const unsigned char *const *ppBlend)
 Stretch an eight bit source blended against the destination.
void DrawScaledBlendBitmapLin4 (const ABitmap &source, const ARect &rect, const unsigned char *const *ppBlend)
 Stretch a four bit source blended against the destination.
void DrawScaledBlendBitmapRle8 (const ABitmap &source, const ARect &rect, const unsigned char *const *ppBlend)
 Stretch a run length encoded source blended against the destination.
Static Protected Member Functions inherited from ACanvas
static int SetupLine (int nX0, int nY0, int nX1, int nY1, int *pnStepX, int *pnStepY)
 Derive the per pixel step of a line and return the pixel count.
static int FindTopmostPolyVertex (const APolygon &polygon)
 Return the position in APolygon::mIndices of the vertex with the smallest row.
static void Unpack4 (const unsigned char *pSource, unsigned char *pDest, int nCount, int bStartHighNibble)
 Unpack one row of four bit pixels into one byte each.
Protected Attributes inherited from ACanvas32
unsigned int mColor

Detailed Description

Canvas over a linear rectangle of 32 bit pixels.

Its RTTI descriptor is at 0x0086f5f0, and its single public base is ACanvas32 at offset zero. Its virtual function table is at 0x0083c360 and terminates on the zero entry at 0x0083c610, matching the 85 slots of ACanvas.

ACanvas::NewCompatibleCanvas() constructs one for kABitmapFormatLinear32 through branch 4 of the jump table at 0x00837d90.

The class adds no data member, so it shares the 0x28 byte layout of ACanvas32. It overrides exactly the slots that benefit from addressing the rectangle directly. Every other slot arrives from ACanvas32 or ACanvas.

The address of a pixel is mBitmap.mPixels + mBitmap.mBytesPerRow * nY + 4 * nX in every override.

The destructor in slot 1 at 0x006141a0 is compiler-generated. It restores ACanvas's table at 0x00837dc8, which is all the inlined base destructors do, and frees the object when the deleting flag is set.

Constructor & Destructor Documentation

◆ ACanvasLin32()

ACanvasLin32::ACanvasLin32 ( const ABitmap & bitmap)
explicit

Adopt a pixel description.

The out-of-line copy calls ACanvas's constructor directly, installs this class's table, and clears mColor. ACanvas::NewCompatibleCanvas() compiles the same sequence inline.

Parameters
bitmapThe description to adopt.
Ghidra address:
NTSC-U/C: 0x00614240
Ghidra address:
PAL: 0x00654dd0

Member Function Documentation

◆ SetAlphaValues()

void ACanvasLin32::SetAlphaValues ( unsigned int nColorKey)
virtual

Rewrite every alpha byte of the pixel rectangle from a colour key.

A pixel whose three colour channels equal the key loses its alpha byte, and every other pixel gains a full one. The key is masked to its three colour channels first.

Parameters
nColorKeyThe colour to treat as transparent.
Ghidra address:
NTSC-U/C: 0x00614278
Ghidra address:
PAL: 0x00654e08

Implements ACanvas.

◆ DrawPixelU()

void ACanvasLin32::DrawPixelU ( int nX,
int nY )
virtual

Store the pen colour at one point, with no clip test.

Parameters
nXThe column.
nYThe row.
Ghidra address:
NTSC-U/C: 0x00614308
Ghidra address:
PAL: 0x00654e98

Implements ACanvas.

◆ DrawPixel32U()

void ACanvasLin32::DrawPixel32U ( int nX,
int nY,
unsigned int nColor )
virtual

Store one 8888 colour at one point, with no clip test.

Every colour format of ACanvas32 arrives here, so the whole family of pixel writers narrows to this one word store.

Parameters
nXThe column.
nYThe row.
nColorThe colour.
Ghidra address:
NTSC-U/C: 0x00614330
Ghidra address:
PAL: 0x00654ec0

Implements ACanvas.

◆ GetPixel32U()

unsigned int ACanvasLin32::GetPixel32U ( int nX,
int nY )
virtual

Read one point as an 8888 colour, with no clip test.

Parameters
nXThe column.
nYThe row.
Returns
The colour.
Ghidra address:
NTSC-U/C: 0x00614350
Ghidra address:
PAL: 0x00654ee0

Implements ACanvas.

◆ DrawHorzLineU()

void ACanvasLin32::DrawHorzLineU ( int nY,
int nLeft,
int nRight )
virtual

Fill part of one row with the pen colour, with no clip test.

Parameters
nYThe row.
nLeftThe first column.
nRightOne past the last column.
Ghidra address:
NTSC-U/C: 0x00614370
Ghidra address:
PAL: 0x00654f00

Reimplemented from ACanvas.

◆ DrawVertLineU()

void ACanvasLin32::DrawVertLineU ( int nX,
int nTop,
int nBottom )
virtual

Fill part of one column with the pen colour, with no clip test.

Parameters
nXThe column.
nTopThe first row.
nBottomOne past the last row.
Ghidra address:
NTSC-U/C: 0x006143b8
Ghidra address:
PAL: 0x00654f48

Reimplemented from ACanvas.

◆ DrawRectU()

void ACanvasLin32::DrawRectU ( ARect rect)
virtual

Fill a rectangle with the pen colour, with no clip test.

Parameters
rectThe rectangle.
Ghidra address:
NTSC-U/C: 0x00614408
Ghidra address:
PAL: 0x00654f98

Reimplemented from ACanvas.

◆ DrawTmapRow8U()

void ACanvasLin32::DrawTmapRow8U ( int nY,
int nLeft,
int nRight,
const ABitmap * pSource,
APoint * pSourcePosition,
const APoint * pSourceStep )
virtual

Fill part of one row by sampling an indexed source bitmap along a fixed step.

Resolves the palette from the source, then the canvas, then ACanvas::palDefault, and returns when none is available. Unlike the base implementation it applies no transparency test.

Parameters
nYThe destination row.
nLeftThe first destination column.
nRightOne past the last destination column.
pSourceThe source bitmap.
pSourcePositionThe source position in 24.8 fixed point, advanced in place.
pSourceStepThe per column advance in 24.8 fixed point.
Ghidra address:
NTSC-U/C: 0x006148e0
Ghidra address:
PAL: 0x00655470

Reimplemented from ACanvas.

◆ DrawBitmapLin4U()

void ACanvasLin32::DrawBitmapLin4U ( const ABitmap & source,
int nX,
int nY )
virtual

Copy a four bit source bitmap, with no clip test.

Unpacks one row into ACanvas::tempBuff and stores one palette entry per pixel. A skipped pixel still advances the destination.

Parameters
sourceThe source bitmap.
nXThe destination column.
nYThe destination row.
Ghidra address:
NTSC-U/C: 0x006144b0
Ghidra address:
PAL: 0x00655040

Reimplemented from ACanvas.

◆ DrawBitmapLin8U()

void ACanvasLin32::DrawBitmapLin8U ( const ABitmap & source,
int nX,
int nY )
virtual

Copy an eight bit source bitmap, with no clip test.

Parameters
sourceThe source bitmap.
nXThe destination column.
nYThe destination row.
Ghidra address:
NTSC-U/C: 0x00614608
Ghidra address:
PAL: 0x00655198

Reimplemented from ACanvas.

◆ DrawBitmapLin32U()

void ACanvasLin32::DrawBitmapLin32U ( const ABitmap & source,
int nX,
int nY )
virtual

Copy a 32 bit source bitmap, with no clip test.

A source with no transparent colour whose stride matches the canvas stride copies in one call. A source with no transparent colour and a different stride copies one row per call. A source with a transparent colour tests every pixel.

Parameters
sourceThe source bitmap.
nXThe destination column.
nYThe destination row.
Ghidra address:
NTSC-U/C: 0x00614070
Ghidra address:
PAL: 0x00654c00

Reimplemented from ACanvas.

◆ DrawClutBitmapRowLin8U()

void ACanvasLin32::DrawClutBitmapRowLin8U ( const ARowInfo & span,
const unsigned char * pRemap )
virtual

Store one row of palette indices through a remap table.

Returns when the span supplies no palette, unlike the base implementation, which resolves the index through the virtual writer instead.

Parameters
spanThe row to store.
pRemap256 replacement indices, one per source index.
Ghidra address:
NTSC-U/C: 0x006146f0
Ghidra address:
PAL: 0x00655280

Reimplemented from ACanvas.

◆ DrawScaledBitmapRowLin8U()

void ACanvasLin32::DrawScaledBitmapRowLin8U ( const AScaledRowInfo & span)
virtual

Store one row of palette indices sampled along a fixed step.

Parameters
spanThe row to store.
Ghidra address:
NTSC-U/C: 0x00614790
Ghidra address:
PAL: 0x00655320

Reimplemented from ACanvas.

◆ DrawScaledClutBitmapRowLin8U()

void ACanvasLin32::DrawScaledClutBitmapRowLin8U ( const AScaledRowInfo & span,
const unsigned char * pRemap )
virtual

Store one row of palette indices sampled along a fixed step, through a remap table.

Parameters
spanThe row to store.
pRemap256 replacement indices, one per source index.
Ghidra address:
NTSC-U/C: 0x00614830
Ghidra address:
PAL: 0x006553c0

Reimplemented from ACanvas.


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