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

Colour conversion for a canvas of 8-bit indexed pixels. More...

#include <acanvas8.h>

Inheritance diagram for ACanvas8:
Collaboration diagram for ACanvas8:

Public Member Functions

 ACanvas8 (const ABitmap &bitmap)
 Construct over a bitmap.
virtual ~ACanvas8 ()
 Slot 1.
virtual void SetColor8 (int nIndex)
 Slot 2.
virtual void SetColor15 (unsigned short nColor)
 Slot 3.
virtual void SetColor24 (const unsigned char *pRGB)
 Slot 4.
virtual void SetColor32 (unsigned int nColor)
 Slot 5.
virtual void SetColorNative (unsigned int nColor)
 Slot 6.
virtual int GetColor8 ()
 Slot 7.
virtual unsigned short GetColor15 ()
 Slot 8.
virtual void GetColor24 (unsigned char *pRGB)
 Slot 9.
virtual unsigned int GetColor32 ()
 Slot 10.
virtual unsigned int GetColorNative ()
 Slot 11.
virtual void SetAlphaValues (unsigned int nColorKey)
 Slot 12.
virtual void DrawPixel15U (int nX, int nY, unsigned short nColor)
 Slot 17.
virtual void DrawPixel24U (int nX, int nY, const unsigned char *pRGB)
 Slot 19.
virtual void DrawPixel32U (int nX, int nY, unsigned int nColor)
 Slot 21.
virtual void DrawPixelNativeU (int nX, int nY, unsigned int nColor)
 Slot 23.
virtual unsigned short GetPixel15U (int nX, int nY)
 Slot 27.
virtual void GetPixel24U (int nX, int nY, unsigned char *pRGB)
 Slot 29.
virtual unsigned int GetPixel32U (int nX, int nY)
 Slot 31.
virtual unsigned int GetPixelNativeU (int nX, int nY)
 Slot 33.
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 DrawPixelU (int nX, int nY)=0
 Store the pen colour at one point, with no clip test.
virtual void DrawPixel (int nX, int nY)
 Store the pen colour at one point.
virtual void DrawPixel8U (int nX, int nY, int nIndex)=0
 Store one palette index at one point, with no clip test.
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 GetPixel8U (int nX, int nY)=0
 Read one point as a palette index, with no clip test.
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 DrawHorzLineU (int nY, int nLeft, int nRight)
 Fill part of one row with the pen colour, with no clip test.
virtual void DrawHorzLine (int nY, int nLeft, int nRight)
 Fill part of one row with the pen colour.
virtual void DrawVertLineU (int nX, int nTop, int nBottom)
 Fill part of one column with the pen colour, with no clip test.
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 DrawRectU (ARect rect)
 Fill a rectangle with the pen colour, with no clip test.
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 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.
virtual void DrawBitmapLin4U (const ABitmap &source, int nX, int nY)
 Copy a four bit source bitmap, with no clip test.
virtual void DrawBitmapLin4 (const ABitmap &source, int nX, int nY)
 Copy a four bit source bitmap, clipped.
virtual void DrawBitmapLin8U (const ABitmap &source, int nX, int nY)
 Copy an eight bit source bitmap, with no clip test.
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 DrawBitmapLin32U (const ABitmap &source, int nX, int nY)
 Copy a 32 bit source bitmap, with no clip test.
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 DrawClutBitmapRowLin8U (const ARowInfo &span, const unsigned char *pRemap)
 Store one row of palette indices through a remap table.
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 DrawScaledBitmapRowLin8U (const AScaledRowInfo &span)
 Store one row of palette indices sampled along a fixed step.
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 DrawScaledClutBitmapRowLin8U (const AScaledRowInfo &span, const unsigned char *pRemap)
 Store one row of palette indices sampled along a fixed step, through a remap table.
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.

Protected Attributes

unsigned char mColor

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.

Detailed Description

Colour conversion for a canvas of 8-bit indexed pixels.

Its RTTI descriptor is at 0x008ef130, and its single public base is ACanvas at offset zero.

THE CLASS IS ABSTRACT. Its table at 0x00841678 runs the same 85 entries as ACanvas's, so it adds no virtual, and of the base's 22 pure slots it leaves three pointing at the shared pure-virtual stub: 13, 15, and 25, which are the colourless store and the indexed pixel pair.

WHICH THREE IT LEAVES IS THE DESIGN OF THE WHOLE FAMILY, and it is exact. A format class implements every colour format OTHER than its own, by converting into its own, and leaves its own format's pixel pair to whichever subclass knows the memory layout. This class leaves the indexed pair at 15 and 25, ACanvas15 leaves the 1555 pair at 17 and 27, and ACanvas24 leaves the channel-triple pair at 19 and 29. Each also leaves slot 13, the colourless store.

This class differs from its two siblings in one slot and can explain it: the alpha builder at slot 12 is supplied here and left pure by both of them, because an indexed format owns a palette whose entries can be rewritten and neither of theirs does.

Two layout classes derive from this one, ACanvasLin4 and ACanvasLin8, and their descriptors record ACanvas8 as their base rather than ACanvas. Four bits and eight bits per pixel address memory differently, which is why the indexed pair cannot live here.

mColor is a single BYTE at offset 0x24, written with sb and read with lbu, where ACanvas15 stores a halfword and ACanvas32 a word at the same offset. For this format the native value and the palette index are the same thing. SetColor8 at 0x00635bf8 and SetColorNative at 0x00635c00 are two distinct routines occupying two distinct table slots whose bodies are byte for byte the same single store, and the two getters match in the same way.

Every slot below is mapped from the table, by comparing each entry against ACanvas's table at 0x00837dc8 at the same index. The base declares both spellings.

No body is written yet. The conversion bodies are recoverable and the three pure slots are not this class's to supply.

Constructor & Destructor Documentation

◆ ACanvas8()

ACanvas8::ACanvas8 ( const ABitmap & bitmap)
explicit

Construct over a bitmap.

Parameters
bitmapThe bitmap the canvas addresses.
Ghidra address:
NTSC-U/C: 0x00635bc0
Ghidra address:
PAL: 0x00676750

◆ ~ACanvas8()

virtual ACanvas8::~ACanvas8 ( )
virtual

Slot 1.

Ghidra address:
NTSC-U/C: 0x00635b40
Ghidra address:
PAL: 0x006766d0

Member Function Documentation

◆ SetColor8()

virtual void ACanvas8::SetColor8 ( int nIndex)
virtual

Slot 2.

Stores the index as the single colour byte.

Ghidra address:
NTSC-U/C: 0x00635bf8
Ghidra address:
PAL: 0x00676788

Implements ACanvas.

◆ SetColor15()

virtual void ACanvas8::SetColor15 ( unsigned short nColor)
virtual

Slot 3.

Ghidra address:
NTSC-U/C: 0x00635c70
Ghidra address:
PAL: 0x00676800

Implements ACanvas.

◆ SetColor24()

virtual void ACanvas8::SetColor24 ( const unsigned char * pRGB)
virtual

Slot 4.

Ghidra address:
NTSC-U/C: 0x00635d08
Ghidra address:
PAL: 0x00676898

Implements ACanvas.

◆ SetColor32()

virtual void ACanvas8::SetColor32 ( unsigned int nColor)
virtual

Slot 5.

Ghidra address:
NTSC-U/C: 0x00635db0
Ghidra address:
PAL: 0x00676940

Implements ACanvas.

◆ SetColorNative()

virtual void ACanvas8::SetColorNative ( unsigned int nColor)
virtual

Slot 6.

The same single store as slot 2.

Ghidra address:
NTSC-U/C: 0x00635c00
Ghidra address:
PAL: 0x00676790

Implements ACanvas.

◆ GetColor8()

virtual int ACanvas8::GetColor8 ( )
virtual

Slot 7.

Ghidra address:
NTSC-U/C: 0x00635c08
Ghidra address:
PAL: 0x00676798

Implements ACanvas.

◆ GetColor15()

virtual unsigned short ACanvas8::GetColor15 ( )
virtual

Slot 8.

Ghidra address:
NTSC-U/C: 0x00635e30
Ghidra address:
PAL: 0x006769c0

Implements ACanvas.

◆ GetColor24()

virtual void ACanvas8::GetColor24 ( unsigned char * pRGB)
virtual

Slot 9.

Ghidra address:
NTSC-U/C: 0x00635e78
Ghidra address:
PAL: 0x00676a08

Implements ACanvas.

◆ GetColor32()

virtual unsigned int ACanvas8::GetColor32 ( )
virtual

Slot 10.

Ghidra address:
NTSC-U/C: 0x00635ec0
Ghidra address:
PAL: 0x00676a50

Implements ACanvas.

◆ GetColorNative()

virtual unsigned int ACanvas8::GetColorNative ( )
virtual

Slot 11.

The same single load as slot 7.

Ghidra address:
NTSC-U/C: 0x00635c10
Ghidra address:
PAL: 0x006767a0

Implements ACanvas.

◆ SetAlphaValues()

virtual void ACanvas8::SetAlphaValues ( unsigned int nColorKey)
virtual

Slot 12.

The only slot with no fallback to the default palette. A canvas with no palette does nothing here.

Ghidra address:
NTSC-U/C: 0x006362d0
Ghidra address:
PAL: 0x00676e60

Implements ACanvas.

◆ DrawPixel15U()

virtual void ACanvas8::DrawPixel15U ( int nX,
int nY,
unsigned short nColor )
virtual

Slot 17.

Ghidra address:
NTSC-U/C: 0x00635ef8
Ghidra address:
PAL: 0x00676a88

Implements ACanvas.

◆ DrawPixel24U()

virtual void ACanvas8::DrawPixel24U ( int nX,
int nY,
const unsigned char * pRGB )
virtual

Slot 19.

Ghidra address:
NTSC-U/C: 0x00635fd8
Ghidra address:
PAL: 0x00676b68

Implements ACanvas.

◆ DrawPixel32U()

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

Slot 21.

Ghidra address:
NTSC-U/C: 0x006360c8
Ghidra address:
PAL: 0x00676c58

Implements ACanvas.

◆ DrawPixelNativeU()

virtual void ACanvas8::DrawPixelNativeU ( int nX,
int nY,
unsigned int nColor )
virtual

Slot 23.

Native is the palette index for this format, so the store narrows and forwards to DrawPixel8U().

Ghidra address:
NTSC-U/C: 0x00635c18
Ghidra address:
PAL: 0x006767a8

Implements ACanvas.

◆ GetPixel15U()

virtual unsigned short ACanvas8::GetPixel15U ( int nX,
int nY )
virtual

Slot 27.

Ghidra address:
NTSC-U/C: 0x00636190
Ghidra address:
PAL: 0x00676d20

Implements ACanvas.

◆ GetPixel24U()

virtual void ACanvas8::GetPixel24U ( int nX,
int nY,
unsigned char * pRGB )
virtual

Slot 29.

Ghidra address:
NTSC-U/C: 0x006361f8
Ghidra address:
PAL: 0x00676d88

Implements ACanvas.

◆ GetPixel32U()

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

Slot 31.

The base's slot 31 is the colourless read rather than a format-specific one. Slot 21 is the same case on the store side.

Ghidra address:
NTSC-U/C: 0x00636270
Ghidra address:
PAL: 0x00676e00

Implements ACanvas.

◆ GetPixelNativeU()

virtual unsigned int ACanvas8::GetPixelNativeU ( int nX,
int nY )
virtual

Slot 33.

Native is the palette index for this format, so the read forwards the result of GetPixel8U() unchanged.

Ghidra address:
NTSC-U/C: 0x00635c48
Ghidra address:
PAL: 0x006767d8

Implements ACanvas.

Member Data Documentation

◆ mColor

unsigned char ACanvas8::mColor
protected

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