coastline 0.0.4
Loading...
Searching...
No Matches
TextureImageData Struct Reference

Image metadata shared by texture entries and temporary texture conversions. More...

#include <textureentry.h>

Collaboration diagram for TextureImageData:

Public Attributes

int nOption1
unsigned char nOption2
int nWidth
int nHeight
int nPixelFormatId
int nOption3
int nLargestLod
int nLod
int nAspectRatio
int bClampS
int bClampT
int nOption4
int nOption5
unsigned dwOption6
int nOption7
int nPixelBytes
int nDecodedWidth
int nDecodedHeight
unsigned char * pImage
const unsigned char * pPalette
int bMirrorS
int bMirrorT
int nTileIndex
int nTileLimit
TexScanTile aTiles [TEX_SCAN_TILE_COUNT]
unsigned dwFlags
int bColorCombine
int bOwnsPaintBuffers
int nPaintGroup
int nPaintSet
int nDamageLevel
int bHasTintPixels
unsigned char * apPaintBuffers [4]
unsigned nPaintPixelBytes
unsigned char abEnvColor [4]
unsigned char abPrimColor [4]
unsigned nRowSwapMask
int nDecodedBytes
int nSourceWidth
int nSourceHeight

Detailed Description

Image metadata shared by texture entries and temporary texture conversions.

Member Data Documentation

◆ nOption1

int TextureImageData::nOption1

The Glide TMU selector; direct images can select the second TMU.

◆ nOption2

unsigned char TextureImageData::nOption2

The mipmap-level mask, initialised to both odd and even levels.

◆ nWidth

int TextureImageData::nWidth

The texture width used during conversion, in texels.

◆ nHeight

int TextureImageData::nHeight

The texture height used during conversion, in texels.

◆ nPixelFormatId

int TextureImageData::nPixelFormatId

The selected backend pixel-format identifier.

◆ nOption3

int TextureImageData::nOption3

The mipmap mode, disabled for direct images.

◆ nLargestLod

int TextureImageData::nLargestLod

The final mipmap endpoint used with nLod to size the chain.

◆ nLod

int TextureImageData::nLod

The level of detail, as CalculateTextureDimensions() reads it.

◆ nAspectRatio

int TextureImageData::nAspectRatio

The aspect ratio, as CalculateTextureDimensions() reads it.

◆ bClampS

int TextureImageData::bClampS

Whether texture binding clamps s.

◆ bClampT

int TextureImageData::bClampT

Whether texture binding clamps t.

◆ nOption4

int TextureImageData::nOption4

The minification filter, initialised to bilinear filtering.

◆ nOption5

int TextureImageData::nOption5

The magnification filter, initialised to bilinear filtering.

◆ dwOption6

unsigned TextureImageData::dwOption6

Backend texture options, initialised to 0xc0000000.

◆ nOption7

int TextureImageData::nOption7

An unreconstructed backend option, initialised to zero.

◆ nPixelBytes

int TextureImageData::nPixelBytes

The byte capacity calculated for the selected pixel format.

◆ nDecodedWidth

int TextureImageData::nDecodedWidth

The decoded image width, including required padding, in texels.

◆ nDecodedHeight

int TextureImageData::nDecodedHeight

The decoded image height, including required padding, in texels.

◆ pImage

unsigned char* TextureImageData::pImage

The source image bytes used during conversion.

◆ pPalette

const unsigned char* TextureImageData::pPalette

The source palette, or null for direct-colour images.

◆ bMirrorS

int TextureImageData::bMirrorS

Whether conversion mirrors the source along its horizontal axis.

◆ bMirrorT

int TextureImageData::bMirrorT

Whether conversion mirrors the source along its vertical axis.

◆ nTileIndex

int TextureImageData::nTileIndex

The active tile of aTiles.

◆ nTileLimit

int TextureImageData::nTileLimit

The exclusive upper bound of tiles contributing mipmap levels.

◆ aTiles

TexScanTile TextureImageData::aTiles[TEX_SCAN_TILE_COUNT]

Captured RDP descriptors for each texture tile.

◆ dwFlags

unsigned TextureImageData::dwFlags

Texture-load category flags captured when the image is constructed.

◆ bColorCombine

int TextureImageData::bColorCombine

Whether texture matching compares the captured colours.

◆ bOwnsPaintBuffers

int TextureImageData::bOwnsPaintBuffers

Whether paint buffer memory is released with this image.

◆ nPaintGroup

int TextureImageData::nPaintGroup

The paint-image group used to obtain custom car colours and decals.

◆ nPaintSet

int TextureImageData::nPaintSet

The paint set within nPaintGroup.

◆ nDamageLevel

int TextureImageData::nDamageLevel

The level of damage, from 0 to 3.

◆ bHasTintPixels

int TextureImageData::bHasTintPixels

Whether the paint rectangle includes colour-tinted pixels.

◆ apPaintBuffers

unsigned char* TextureImageData::apPaintBuffers[4]

Pixel buffers for the four damage levels.

◆ nPaintPixelBytes

unsigned TextureImageData::nPaintPixelBytes

The capacity of each allocated paint buffer, in bytes.

◆ abEnvColor

unsigned char TextureImageData::abEnvColor[4]

Captured environment colour, in RGBA order.

◆ abPrimColor

unsigned char TextureImageData::abPrimColor[4]

Captured primitive colour, in RGBA order.

◆ nRowSwapMask

unsigned TextureImageData::nRowSwapMask

Row-index bits that select the RDP's four-byte row address swap.

◆ nDecodedBytes

int TextureImageData::nDecodedBytes

The decoded pixel byte count before backend upload.

◆ nSourceWidth

int TextureImageData::nSourceWidth

The original image width before padding or scaling, in texels.

◆ nSourceHeight

int TextureImageData::nSourceHeight

The original image height before padding or scaling, in texels.


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