coastline 0.0.4
Loading...
Searching...
No Matches
texturesampling.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SampleTexturePixelBilinear (unsigned char *pDest, const unsigned char *pTopLeft, const unsigned char *pTopRight, const unsigned char *pBottomLeft, const unsigned char *pBottomRight, float x, float y)
 Bilinearly sample four decoded four-byte pixels.
void BilinearInterpolate8bpp (unsigned char *destination, const unsigned char *topLeft, const unsigned char *topRight, const unsigned char *bottomLeft, const unsigned char *bottomRight, float x, float y)
 Bilinearly sample four texels of one byte, rounding and clamping the result.
void BilinearInterpolateArgb1555 (unsigned char *destination, const unsigned char *topLeft, const unsigned char *topRight, const unsigned char *bottomLeft, const unsigned char *bottomRight, float x, float y)
 Bilinearly sample four packed ARGB1555 pixels, rounding and clamping each channel.
void BilinearInterpolateArgb4444 (unsigned char *destination, const unsigned char *topLeft, const unsigned char *topRight, const unsigned char *bottomLeft, const unsigned char *bottomRight, float x, float y)
 Bilinearly sample four packed ARGB4444 pixels, rounding and clamping each channel.

Function Documentation

◆ SampleTexturePixelBilinear()

void SampleTexturePixelBilinear ( unsigned char * pDest,
const unsigned char * pTopLeft,
const unsigned char * pTopRight,
const unsigned char * pBottomLeft,
const unsigned char * pBottomRight,
float x,
float y )

Bilinearly sample four decoded four-byte pixels.

Parameters
pDestReceives the sampled pixel.
pTopLeftThe top-left pixel.
pTopRightThe top-right pixel.
pBottomLeftThe bottom-left pixel.
pBottomRightThe bottom-right pixel.
xThe horizontal interpolation fraction.
yThe vertical interpolation fraction.
Ghidra address:
BRD3D: 0x100254f0

◆ BilinearInterpolate8bpp()

void BilinearInterpolate8bpp ( unsigned char * destination,
const unsigned char * topLeft,
const unsigned char * topRight,
const unsigned char * bottomLeft,
const unsigned char * bottomRight,
float x,
float y )

Bilinearly sample four texels of one byte, rounding and clamping the result.

Parameters
destinationReceives the sampled texel.
topLeftThe top-left texel.
topRightThe top-right texel.
bottomLeftThe bottom-left texel.
bottomRightThe bottom-right texel.
xThe horizontal interpolation fraction.
yThe vertical interpolation fraction.
Ghidra address:
BRGlide: 0x10024680

◆ BilinearInterpolateArgb1555()

void BilinearInterpolateArgb1555 ( unsigned char * destination,
const unsigned char * topLeft,
const unsigned char * topRight,
const unsigned char * bottomLeft,
const unsigned char * bottomRight,
float x,
float y )

Bilinearly sample four packed ARGB1555 pixels, rounding and clamping each channel.

Ghidra address:
BRGlide: 0x10024750

◆ BilinearInterpolateArgb4444()

void BilinearInterpolateArgb4444 ( unsigned char * destination,
const unsigned char * topLeft,
const unsigned char * topRight,
const unsigned char * bottomLeft,
const unsigned char * bottomRight,
float x,
float y )

Bilinearly sample four packed ARGB4444 pixels, rounding and clamping each channel.

Ghidra address:
BRGlide: 0x10024aa0