|
coastline 0.0.4
|
The scan of the display lists of the game in the PC port for the textures they load. More...

Go to the source code of this file.
Macros | |
| #define | TMEM_SHADOW_SIZE 0x800 |
| The size of g_abTmemShadow. | |
| #define | TMEM_SHADOW_TLUT_SIZE 0xf800 |
| The size of g_abTmemShadowTlut. | |
Enumerations | |
| enum | TexScanLoadState { TEX_SCAN_IDLE = 0 , TEX_SCAN_IMAGE_SET = 1 , TEX_SCAN_LOAD_SYNCED = 2 , TEX_SCAN_BLOCK_LOADED = 3 , TEX_SCAN_TILE_SYNCED = 4 , TEX_SCAN_TILE_SET = 5 , TEX_SCAN_TILE_SIZED = 6 , TEX_SCAN_TLUT_LOADED = 7 , TEX_SCAN_PIPE_SYNCED = 8 } |
| The states of the scan of a load of a texture, by the command that sets each. More... | |
Functions | |
| void | MarkTextureCommandBlockStart (GbiCommand *pCommand) |
| Mark the first command of the commands that load a texture, when none is marked. | |
| void | ScanGbiTexture (GbiCommand *pCommand) |
| Record the tile and the levels of detail of a texture command. | |
| void | ScanGbiSetTextureImage (GbiCommand *pCommand) |
| Record the texture image of a command, when the scan is idle or after a block or a tile size. | |
| void | ScanGbiLoadTlut (GbiCommand *pCommand) |
| Copy the palette of a command from the texture image into g_pTlutLoadList, after a texture image. | |
| void | ScanGbiLoadSync (GbiCommand *pCommand) |
| Mark the sync of a load, after a texture image. | |
| void | ScanGbiLoadBlock (GbiCommand *pCommand) |
| Copy the block of a command from the texture image into g_abTmemShadow, after the sync of a load. | |
| void | ScanGbiPipeSync (GbiCommand *pCommand) |
| Mark the sync of the pipeline, after a palette. | |
| void | ScanGbiTileSync (GbiCommand *pCommand) |
| Mark the sync of a tile, after a block or a palette. | |
| void | ScanGbiSetTileSize (GbiCommand *pCommand) |
| Record the edges of the tile of a command. | |
| void | ScanGbiSetOtherModeL (GbiCommand *pCommand) |
| Record bit 16 of the render mode of a command of the low word of the other modes, as g_bTexScanRenderModeBlendBit16 takes it. | |
| void | ScanGbiTextureLutMode (GbiCommand *pCommand) |
| Record the format of the palettes of a command, keeping it for a command without one. | |
| void | ScanGbiSetOtherModeH (GbiCommand *pCommand) |
| Record the palettes or the detail of the textures of a command of the high word of the other modes. | |
| void | ScanGbiSetTile (GbiCommand *pCommand) |
| Record the settings of the tile of a command and mark the tile set. | |
| void | FlushPendingTextureLoad (GbiCommand *pCommand) |
| Convert a pending texture load when a drawing command consumes it. | |
| int | CreateTextureFromTmemShadow (unsigned char *pTmem) |
| Find or create a texture entry from the captured texture memory and scan state. | |
| void | PreprocessDisplayListTextures (GbiCommand *pCommand) |
| Scan a display list for texture loads until its end command. | |
Variables | |
| int | g_dwTexScanLoadState |
| The state of the scan of the load of a texture. | |
| GbiCommand * | g_pTexScanCmdBlockStart |
| The first command of the commands that load a texture, or nullptr before one is marked. | |
| int | g_dwTexScanTileIndex |
| The tile the last texture command chose. | |
| int | g_dwTexScanMipLevels |
| The levels of detail the last texture command gave. | |
| int | g_dwTexScanImageSiz |
| The size of the texels of the texture image set last. | |
| const void * | g_pTexScanImageAddress |
| The texels of the texture image set last. | |
| const void * | g_pTexScanTlutAddress |
| The texels of the palette loaded last, nullptr after a texture image without one. | |
| GbiCommand * | g_pTexScanSetTextureImageCmd |
| The command that set the texture image when the scan was idle. | |
| unsigned char | g_abTmemShadow [TMEM_SHADOW_SIZE] |
| The copy of the texture memory of the console that the blocks load into. | |
| unsigned char | g_abTmemShadowTlut [TMEM_SHADOW_TLUT_SIZE] |
| The copy of the palettes the scan loads. | |
| unsigned char * | g_pTlutLoadList |
| Where ScanGbiLoadTlut() copies a palette. | |
| const void * | g_pTexScanLoadBlockSource |
| The texels the last block was loaded from. | |
| int | g_dwTexScanLoadBlockSize |
| The bytes of the last block loaded. | |
| TexScanTile | g_aTexScanTiles [TEX_SCAN_TILE_COUNT] |
| The tiles the scan records. | |
| int | g_bTexScanRenderModeBlendBit16 |
| Bit 16 of the render mode set last when bit 11 or 12 of it is set, and 0 otherwise and for three render modes the scan knows. | |
| int | g_dwTexScanTlutMode |
| The format of the palettes the textures use, 0 for RGBA and 3 for IA. | |
| int | g_dwTexScanRenderTileIndex |
| Whether the detail of the textures is the mode of detail textures. | |
| int | g_dwTexScanMaxTileIndex |
| The highest tile a tile command set since a block, a tile sync, or a palette. | |
| int | g_bTexScanColorCombine |
| Whether texture matching includes the captured primitive and environment colours. | |
| int | g_bTexScanPrimColorSet |
| Whether the current primitive colour was set by a display-list command. | |
| int | g_bTexScanEnvColorSet |
| Whether the current environment colour was set by a display-list command. | |
| unsigned char | g_bTexScanPrimColorR |
| The red channel of the current primitive colour. | |
| unsigned char | g_bTexScanPrimColorG |
| The green channel of the current primitive colour. | |
| unsigned char | g_bTexScanPrimColorB |
| The blue channel of the current primitive colour. | |
| unsigned char | g_bTexScanPrimColorA |
| The alpha channel of the current primitive colour. | |
| unsigned char | g_bTexScanEnvColorR |
| The red channel of the current environment colour. | |
| unsigned char | g_bTexScanEnvColorG |
| The green channel of the current environment colour. | |
| unsigned char | g_bTexScanEnvColorB |
| The blue channel of the current environment colour. | |
| unsigned char | g_bTexScanEnvColorA |
| The alpha channel of the current environment colour. | |
| void(* | g_pfnPreprocessDisplayListTextures )(GbiCommand *pCommand) |
| The backend callback that scans a display list for texture loads. | |
The scan of the display lists of the game in the PC port for the textures they load.
| #define TMEM_SHADOW_SIZE 0x800 |
The size of g_abTmemShadow.
| #define TMEM_SHADOW_TLUT_SIZE 0xf800 |
The size of g_abTmemShadowTlut.
| enum TexScanLoadState |
| void MarkTextureCommandBlockStart | ( | GbiCommand * | pCommand | ) |
Mark the first command of the commands that load a texture, when none is marked.
| pCommand | The command. |
| void ScanGbiTexture | ( | GbiCommand * | pCommand | ) |
Record the tile and the levels of detail of a texture command.
| pCommand | The command. |
| void ScanGbiSetTextureImage | ( | GbiCommand * | pCommand | ) |
Record the texture image of a command, when the scan is idle or after a block or a tile size.
| pCommand | The command. |
| void ScanGbiLoadTlut | ( | GbiCommand * | pCommand | ) |
Copy the palette of a command from the texture image into g_pTlutLoadList, after a texture image.
| pCommand | The command. |
| void ScanGbiLoadSync | ( | GbiCommand * | pCommand | ) |
Mark the sync of a load, after a texture image.
| pCommand | The command. |
| void ScanGbiLoadBlock | ( | GbiCommand * | pCommand | ) |
Copy the block of a command from the texture image into g_abTmemShadow, after the sync of a load.
| pCommand | The command. |
| void ScanGbiPipeSync | ( | GbiCommand * | pCommand | ) |
Mark the sync of the pipeline, after a palette.
| pCommand | The command. |
| void ScanGbiTileSync | ( | GbiCommand * | pCommand | ) |
Mark the sync of a tile, after a block or a palette.
| pCommand | The command. |
| void ScanGbiSetTileSize | ( | GbiCommand * | pCommand | ) |
Record the edges of the tile of a command.
| pCommand | The command. |
| void ScanGbiSetOtherModeL | ( | GbiCommand * | pCommand | ) |
Record bit 16 of the render mode of a command of the low word of the other modes, as g_bTexScanRenderModeBlendBit16 takes it.
| pCommand | The command. |
| void ScanGbiTextureLutMode | ( | GbiCommand * | pCommand | ) |
Record the format of the palettes of a command, keeping it for a command without one.
| pCommand | The command. |
| void ScanGbiSetOtherModeH | ( | GbiCommand * | pCommand | ) |
Record the palettes or the detail of the textures of a command of the high word of the other modes.
| pCommand | The command. |
| void ScanGbiSetTile | ( | GbiCommand * | pCommand | ) |
Record the settings of the tile of a command and mark the tile set.
| pCommand | The command. |
| void FlushPendingTextureLoad | ( | GbiCommand * | pCommand | ) |
Convert a pending texture load when a drawing command consumes it.
| pCommand | The drawing command. |
| int CreateTextureFromTmemShadow | ( | unsigned char * | pTmem | ) |
Find or create a texture entry from the captured texture memory and scan state.
| pTmem | The captured texture memory, unused. |
| void PreprocessDisplayListTextures | ( | GbiCommand * | pCommand | ) |
Scan a display list for texture loads until its end command.
| pCommand | The first command, or null. |
|
extern |
The state of the scan of the load of a texture.
|
extern |
The first command of the commands that load a texture, or nullptr before one is marked.
|
extern |
The tile the last texture command chose.
|
extern |
The levels of detail the last texture command gave.
|
extern |
The size of the texels of the texture image set last.
|
extern |
The texels of the texture image set last.
|
extern |
The texels of the palette loaded last, nullptr after a texture image without one.
|
extern |
The command that set the texture image when the scan was idle.
|
extern |
The copy of the texture memory of the console that the blocks load into.
|
extern |
The copy of the palettes the scan loads.
|
extern |
Where ScanGbiLoadTlut() copies a palette.
|
extern |
The texels the last block was loaded from.
|
extern |
The bytes of the last block loaded.
|
extern |
The tiles the scan records.
|
extern |
Bit 16 of the render mode set last when bit 11 or 12 of it is set, and 0 otherwise and for three render modes the scan knows.
|
extern |
The format of the palettes the textures use, 0 for RGBA and 3 for IA.
|
extern |
Whether the detail of the textures is the mode of detail textures.
|
extern |
The highest tile a tile command set since a block, a tile sync, or a palette.
|
extern |
Whether texture matching includes the captured primitive and environment colours.
|
extern |
Whether the current primitive colour was set by a display-list command.
|
extern |
Whether the current environment colour was set by a display-list command.
|
extern |
The red channel of the current primitive colour.
|
extern |
The green channel of the current primitive colour.
|
extern |
The blue channel of the current primitive colour.
|
extern |
The alpha channel of the current primitive colour.
|
extern |
The red channel of the current environment colour.
|
extern |
The green channel of the current environment colour.
|
extern |
The blue channel of the current environment colour.
|
extern |
The alpha channel of the current environment colour.
|
extern |
The backend callback that scans a display list for texture loads.