coastline 0.0.4
Loading...
Searching...
No Matches
displaylist.h File Reference

The parts of the interpreter of the display lists of the game that only the Glide renderer has: the render state it records, its fog, and its vertices drawn without the depth buffer. More...

Include dependency graph for displaylist.h:

Go to the source code of this file.

Functions

void TransformVertexToScreenNoZBuffer (GrVertex *pDest, const GbiVertexSource *pSource, float fRed, float fGreen, float fBlue)
 Take a vertex inside the view to the screen with a colour, as TransformVertexToScreen() does, and give it the w of the far plane.
void UpdateVertexFogRange (void)
 Give Glide the table of fog of the weather.

Variables

int g_dwGlideCullMode
 The mode of grCullMode() last set.
int g_dwGlideDepthFunction
 The comparison of grDepthBufferFunction() last set.
int g_dwGlideAlphaTestFunction
 The comparison of grAlphaTestFunction() last set.
int g_dwGlideBlendRgbSource
 The factor of the source colour of grAlphaBlendFunction() last set.
int g_dwGlideBlendRgbDest
 The factor of the destination colour of grAlphaBlendFunction() last set.
int g_dwGlideBlendAlphaSource
 The factor of the source alpha of grAlphaBlendFunction() last set.
int g_dwGlideBlendAlphaDest
 The factor of the destination alpha of grAlphaBlendFunction() last set.
GrFog_t g_aGlideFogTable [GR_FOG_TABLE_SIZE]
 The table of fog UpdateVertexFogRange() gives Glide.
int g_nGbiVertexSnap
 The integer that TransformVertexToScreen() rounds a coordinate through.

Detailed Description

The parts of the interpreter of the display lists of the game that only the Glide renderer has: the render state it records, its fog, and its vertices drawn without the depth buffer.

Function Documentation

◆ TransformVertexToScreenNoZBuffer()

void TransformVertexToScreenNoZBuffer ( GrVertex * pDest,
const GbiVertexSource * pSource,
float fRed,
float fGreen,
float fBlue )

Take a vertex inside the view to the screen with a colour, as TransformVertexToScreen() does, and give it the w of the far plane.

Parameters
pDestThe vertex on the screen.
pSourceThe vertex as it was loaded.
fRedThe red, from 0 to 255.
fGreenThe green, from 0 to 255.
fBlueThe blue, from 0 to 255.
Ghidra address:
BRGlide: 0x10023760

◆ UpdateVertexFogRange()

void UpdateVertexFogRange ( void )

Give Glide the table of fog of the weather.

Without weather, the table last made is given again.

Ghidra address:
BRGlide: 0x10023aa0

Variable Documentation

◆ g_dwGlideCullMode

int g_dwGlideCullMode
extern

The mode of grCullMode() last set.

Ghidra address:
BRGlide: 0x105d17d8

◆ g_dwGlideDepthFunction

int g_dwGlideDepthFunction
extern

The comparison of grDepthBufferFunction() last set.

Ghidra address:
BRGlide: 0x105ce2e0

◆ g_dwGlideAlphaTestFunction

int g_dwGlideAlphaTestFunction
extern

The comparison of grAlphaTestFunction() last set.

Ghidra address:
BRGlide: 0x105ccc70

◆ g_dwGlideBlendRgbSource

int g_dwGlideBlendRgbSource
extern

The factor of the source colour of grAlphaBlendFunction() last set.

Ghidra address:
BRGlide: 0x105d17a8

◆ g_dwGlideBlendRgbDest

int g_dwGlideBlendRgbDest
extern

The factor of the destination colour of grAlphaBlendFunction() last set.

Ghidra address:
BRGlide: 0x105d1758

◆ g_dwGlideBlendAlphaSource

int g_dwGlideBlendAlphaSource
extern

The factor of the source alpha of grAlphaBlendFunction() last set.

Ghidra address:
BRGlide: 0x105ccfd4

◆ g_dwGlideBlendAlphaDest

int g_dwGlideBlendAlphaDest
extern

The factor of the destination alpha of grAlphaBlendFunction() last set.

Ghidra address:
BRGlide: 0x105ccfe4

◆ g_aGlideFogTable

GrFog_t g_aGlideFogTable[GR_FOG_TABLE_SIZE]
extern

The table of fog UpdateVertexFogRange() gives Glide.

Ghidra address:
BRGlide: 0x105d1718

◆ g_nGbiVertexSnap

int g_nGbiVertexSnap
extern

The integer that TransformVertexToScreen() rounds a coordinate through.

Ghidra address:
BRGlide: 0x105ce310