coastline 0.0.4
Loading...
Searching...
No Matches
cameraprojection.h File Reference
#include "common/types.h"
Include dependency graph for cameraprojection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SetupProjectionMatrix (f32 width, f32 height)
 Set up a fixed projection, looking at (512, 384) from 1000 along z, and load it into the display list.
void SetupMenuProjection (f32 width, f32 height)
 Set up the menu projection and load it into the display list.

Variables

s32 g_dwKeepCustomClipPlanes
 Whether SetupMenuProjection() keeps the near scale and far distance set before it once, instead of its defaults.
f32 g_fCameraNearScale
 The near plane of perspective cameras.
f32 g_fCameraFarDistance
 The far plane of perspective cameras.

Function Documentation

◆ SetupProjectionMatrix()

void SetupProjectionMatrix ( f32 width,
f32 height )

Set up a fixed projection, looking at (512, 384) from 1000 along z, and load it into the display list.

Parameters
widthThe width of the screen; the fixed projection does not read it.
heightThe height of the screen; the fixed projection does not read it.
Ghidra address:
USA: 0x8021b458
Ghidra address:
Asia: 0x8021AFA8
Ghidra address:
EUR: 0x8021c594
Ghidra address:
BRD3D: 0x10033f7e
Ghidra address:
BRGlide: 0x1002d62f
Ghidra address:
JPN: 0x8021be64

◆ SetupMenuProjection()

void SetupMenuProjection ( f32 width,
f32 height )

Set up the menu projection and load it into the display list.

N64 looks at the screen centre; Windows maps screen coordinates directly.

Parameters
widthThe width of the screen; N64 does not read it.
heightThe height of the screen; N64 does not read it.
Ghidra address:
USA: 0x8021b5a4
Ghidra address:
Asia: 0x8021B0F4
Ghidra address:
EUR: 0x8021c6e0
Ghidra address:
BRD3D: 0x1003407d
Ghidra address:
BRGlide: 0x1002d72e
Ghidra address:
JPN: 0x8021bfb0

Variable Documentation

◆ g_dwKeepCustomClipPlanes

s32 g_dwKeepCustomClipPlanes
extern

Whether SetupMenuProjection() keeps the near scale and far distance set before it once, instead of its defaults.

It clears this.

Ghidra address:
USA: 0x8028a868
Ghidra address:
Asia: 0x8028A3B8
Ghidra address:
EUR: 0x8028ca68
Ghidra address:
JPN: 0x8028c538

◆ g_fCameraNearScale

f32 g_fCameraNearScale
extern

The near plane of perspective cameras.

Ghidra address:
USA: 0x8028a86c
Ghidra address:
Asia: 0x8028A3BC
Ghidra address:
EUR: 0x8028ca6c
Ghidra address:
BRD3D: 0x106c3360
Ghidra address:
BRGlide: 0x106ea3f0
Ghidra address:
JPN: 0x8028c53c

◆ g_fCameraFarDistance

f32 g_fCameraFarDistance
extern

The far plane of perspective cameras.

Ghidra address:
USA: 0x8028a870
Ghidra address:
Asia: 0x8028A3C0
Ghidra address:
EUR: 0x8028ca70
Ghidra address:
BRD3D: 0x106c5ab4
Ghidra address:
BRGlide: 0x106ecb44
Ghidra address:
JPN: 0x8028c540