|
resonance 1.0.1
|

Go to the source code of this file.
Classes | |
| class | ABitmap |
| Description of a pixel rectangle, its layout, and its palette. More... | |
Enumerations | |
| enum | ABitmapFormat { kABitmapFormatLinear4 = 0 , kABitmapFormatLinear8 = 1 , kABitmapFormatLinear15 = 2 , kABitmapFormatLinear24 = 3 , kABitmapFormatLinear32 = 4 , kABitmapFormatRle8 = 5 , kABitmapFormatCount = 6 } |
| Pixel layout code stored in ABitmap::mFormat. More... | |
| enum | ABitmapColorKey { kABitmapColorKeyWhite = 1 , kABitmapColorKeyBlack = 2 } |
| Colour key choices ABitmap::ApplyColorKey() takes. More... | |
Variables | |
| const unsigned char | g_abBitmapBitsPerPixel [kABitmapFormatCount] |
| Bits one pixel of each ABitmapFormat occupies. | |
| int | g_nSkipColorSwap |
| Non-zero to leave bitmap colours in file order rather than swapping red and blue. | |
| enum ABitmapFormat |
Pixel layout code stored in ABitmap::mFormat.
ACanvas::NewCompatibleCanvas() accepts only codes 0 through 5 and rejects every larger code. Each accepted code selects one of the five linear canvas subclasses. The mapping was recovered from the jump table at 0x00837d90 together with the type function each branch installs.
The same code selects a copy routine in ACanvas::DrawCharU(), through the six entry member pointer table at 0x0077dc98, and a read routine through the table at 0x0077dcf8. Both tables confirm the order, because their entries address the 4, 8, 15, 24, 32, and run length encoded slots in that sequence.
Code 5 describes a run length encoded source, and the same code allocated as a canvas gives a linear eight bit surface. The two readings agree, because a run length encoded rectangle is a copy source rather than a drawing destination.
| Enumerator | |
|---|---|
| kABitmapFormatLinear4 | Four bits per pixel, drawn by ACanvasLin4. |
| kABitmapFormatLinear8 | One byte per pixel, drawn by ACanvasLin8. |
| kABitmapFormatLinear15 | Two bytes per pixel, drawn by ACanvasLin15. |
| kABitmapFormatLinear24 | Three bytes per pixel, drawn by ACanvasLin24. |
| kABitmapFormatLinear32 | Four bytes per pixel, drawn by ACanvasLin32. |
| kABitmapFormatRle8 | Run length encoded bytes, allocated as ACanvasLin8. |
| kABitmapFormatCount | One past the last code the factory accepts. |
| enum ABitmapColorKey |
Colour key choices ABitmap::ApplyColorKey() takes.
| Enumerator | |
|---|---|
| kABitmapColorKeyWhite | Key on white. |
| kABitmapColorKeyBlack | Key on black. |
|
extern |
Bits one pixel of each ABitmapFormat occupies.
The table sits immediately after ABitmap::bmPixelSize and no reader of it was located inside the art library. A second pair of the same shape exists at 0x0070d3d0, where the first table maps the same codes to PlayStation 2 graphics synthesiser storage modes.
|
extern |
Non-zero to leave bitmap colours in file order rather than swapping red and blue.
Rnd::AMovieSet::Update(), Rnd::Tex::OnMipLoaded(), and the routines at 0x00250638 and 0x00254cf8 test it before calling ABitmap::SwapRedBlue(). Rnd::VRAM::Screendump() swaps without the test. The image never writes it, and it retains its initial value of 1. The name is inferred.