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

The entries of g_pTextureEntries of the textures of precipitation. More...

#include <renderbackend.h>

Public Attributes

void(* submitDisplayList )(struct GbiCommand *displayList)
 Submit a terminated display list through the active renderer.
void(* aliasTexture )(int entry, int source)
 Alias entry to source; the default SDL hook does nothing.
unsigned(* createTexture )(const unsigned char *image, const unsigned char *palette, int width, int height, int lineBytes, int size, int format, int option7, int option8, int option9, int option10, int option11, int option12, int option13, int option14)
 Create a texture entry from an N64 image and palette, returning its index.
int(* decodeTexture )(void *destination, const unsigned char *image, const unsigned char *palette, int width, int height, int lineBytes, int size, int format)
 Decode an N64 image into caller-provided storage and return its decoded byte count.
void(* initialize )(void)
void(* initializeTextures )(void)
void(* shutdown )(void)
void(* shutdownTextures )(void)
void(* updateFog )(void)
int forceTextureClone
int disableCarShadow
unsigned hudOverlay
unsigned hudOverlayHalf
unsigned particles
unsigned tireTrail
unsigned vehicleEnvironment
unsigned fallbackEnvironment
int alphaRampRows
int precipitation [PRECIPITATION_TEXTURE_COUNT]

Detailed Description

The entries of g_pTextureEntries of the textures of precipitation.

Ghidra address:
BRD3D: 0x11829100
Ghidra address:
BRGlide: 0x1184c460 Renderer hooks and effect texture entries for one SDL race engine.

Member Data Documentation

◆ submitDisplayList

void(* SdlRenderBackendState::submitDisplayList) (struct GbiCommand *displayList)

Submit a terminated display list through the active renderer.

◆ aliasTexture

void(* SdlRenderBackendState::aliasTexture) (int entry, int source)

Alias entry to source; the default SDL hook does nothing.

◆ createTexture

unsigned(* SdlRenderBackendState::createTexture) (const unsigned char *image, const unsigned char *palette, int width, int height, int lineBytes, int size, int format, int option7, int option8, int option9, int option10, int option11, int option12, int option13, int option14)

Create a texture entry from an N64 image and palette, returning its index.

Dimensions are in texels; lineBytes, size, and format describe the source RDP tile. Remaining options describe mirroring, clamping, coordinate shifts, and row swapping. The default SDL hook accepts only 8-bit colour-indexed images, returning zero otherwise.

◆ decodeTexture

int(* SdlRenderBackendState::decodeTexture) (void *destination, const unsigned char *image, const unsigned char *palette, int width, int height, int lineBytes, int size, int format)

Decode an N64 image into caller-provided storage and return its decoded byte count.

Dimensions are in texels; lineBytes, size, and format describe the source RDP tile. The default SDL hook returns zero for formats other than 8-bit colour-indexed images.

◆ initialize

void(* SdlRenderBackendState::initialize) (void)

Initialise the selected render backend.

◆ initializeTextures

void(* SdlRenderBackendState::initializeTextures) (void)

Initialise its texture subsystem.

◆ shutdown

void(* SdlRenderBackendState::shutdown) (void)

Release the active render backend.

◆ shutdownTextures

void(* SdlRenderBackendState::shutdownTextures) (void)

Release its texture subsystem.

◆ updateFog

void(* SdlRenderBackendState::updateFog) (void)

Apply the current race fog settings to the renderer.

◆ forceTextureClone

int SdlRenderBackendState::forceTextureClone

Bypass texture metadata matching when creating a device texture.

◆ disableCarShadow

int SdlRenderBackendState::disableCarShadow

Suppress car shadow rendering when nonzero.

◆ hudOverlay

unsigned SdlRenderBackendState::hudOverlay

The texture entry for the race HUD overlay.

◆ hudOverlayHalf

unsigned SdlRenderBackendState::hudOverlayHalf

The half-scale HUD overlay entry, or hudOverlay when shared.

◆ particles

unsigned SdlRenderBackendState::particles

The texture entry for race particle effects.

◆ tireTrail

unsigned SdlRenderBackendState::tireTrail

The texture entry for tyre trails.

◆ vehicleEnvironment

unsigned SdlRenderBackendState::vehicleEnvironment

The night-time vehicle reflection texture entry.

◆ fallbackEnvironment

unsigned SdlRenderBackendState::fallbackEnvironment

The daytime vehicle reflection texture entry.

◆ alphaRampRows

int SdlRenderBackendState::alphaRampRows

The byte stride between adjacent converted alpha-ramp texels.

◆ precipitation

int SdlRenderBackendState::precipitation[PRECIPITATION_TEXTURE_COUNT]

Texture entries for precipitation.


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