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

The Glide device of the Glide renderer: its hardware, its window, and the render state each window starts with. More...

#include <glide.h>
#include <windows.h>
Include dependency graph for renderer.h:

Go to the source code of this file.

Functions

void PresentFrameCallback_GlideBufferSwap (void)
 Wait for the buffers Glide has pending, then show the frame drawn.
int OpenGlideWindowForResolution (int nWidth, int nHeight)
 Open the Glide window at the size of the frame buffer of the configuration, and set the render state it starts with.
void InitGlideDefaultRenderState (int nWidth, int nHeight)
 Set the render state a Glide window starts with: the clip window over the frame buffer of the configuration, the w buffer, the clear of the buffers, and the combines of colour, alpha, and texture.

Variables

int g_nGlideNumTmus
 The units of texture of the Glide hardware.
GrHwConfiguration g_GlideHwConfig
 The Glide hardware grSstQueryHardware() found.
int g_dwGlideFbRamMB
 The megabytes of the frame buffer of the Glide hardware.

Detailed Description

The Glide device of the Glide renderer: its hardware, its window, and the render state each window starts with.

Function Documentation

◆ PresentFrameCallback_GlideBufferSwap()

void PresentFrameCallback_GlideBufferSwap ( void )

Wait for the buffers Glide has pending, then show the frame drawn.

Ghidra address:
BRGlide: 0x1001dd50

◆ OpenGlideWindowForResolution()

int OpenGlideWindowForResolution ( int nWidth,
int nHeight )

Open the Glide window at the size of the frame buffer of the configuration, and set the render state it starts with.

A size Glide has no resolution for does not open a window.

Parameters
nWidthThe width, not read.
nHeightThe height, not read.
Returns
0 when Glide fails to open the window, and 1 otherwise.
Ghidra address:
BRGlide: 0x1001dd80

◆ InitGlideDefaultRenderState()

void InitGlideDefaultRenderState ( int nWidth,
int nHeight )

Set the render state a Glide window starts with: the clip window over the frame buffer of the configuration, the w buffer, the clear of the buffers, and the combines of colour, alpha, and texture.

Parameters
nWidthThe width, not read.
nHeightThe height, not read.
Ghidra address:
BRGlide: 0x1001dfb0

Variable Documentation

◆ g_nGlideNumTmus

int g_nGlideNumTmus
extern

The units of texture of the Glide hardware.

Ghidra address:
BRGlide: 0x105ccbd0

◆ g_GlideHwConfig

GrHwConfiguration g_GlideHwConfig
extern

The Glide hardware grSstQueryHardware() found.

Ghidra address:
BRGlide: 0x105ccbd8

◆ g_dwGlideFbRamMB

int g_dwGlideFbRamMB
extern

The megabytes of the frame buffer of the Glide hardware.

Ghidra address:
BRGlide: 0x105ccc6c