Skip to main content

background-h

source

Types


background-work

background-work: basicsource
Fields
type: type
tfrag-tree-count: int32
tfrag-trees: drawable-tree-tfrag
tfrag-levels: level
trans-tfrag-tree-count: int32
trans-tfrag-trees: drawable-tree-trans-tfrag
trans-tfrag-levels: level
dirt-tfrag-tree-count: int32
dirt-tfrag-trees: drawable-tree-dirt-tfrag
dirt-tfrag-levels: level
ice-tfrag-tree-count: int32
ice-tfrag-trees: drawable-tree-ice-tfrag
ice-tfrag-levels: level
lowres-tfrag-tree-count: int32
lowres-tfrag-trees: drawable-tree-lowres-tfrag
lowres-tfrag-levels: level
lowres-trans-tfrag-tree-count: int32
lowres-trans-tfrag-trees: drawable-tree-trans-tfrag
lowres-trans-tfrag-levels: level
shrub-tree-count: int32
shrub-trees: drawable-tree-instance-shrub
shrub-levels: level
tie-tree-count: int32
tie-trees: drawable-tree-instance-tie
tie-levels: level
tie-generic: basic
wait-to-vu0: uint32

background

source

Functions


add-pc-port-background-data

add-pc-port-background-data(dma-buf: dma-buffer) => symbolsource

background-upload-vu0

background-upload-vu0() => nonesource
Set up VU0 for background.

finish-background

finish-background() => nonesource
Complete the background drawing.
This function should run after the background engine has executed.

init-background

init-background() => nonesource
Initialize the global *background-work*

upload-vis-bits

upload-vis-bits(arg0: level, arg1: level, arg2: bsp-header) => nonesource
Upload visibility data to the scratchpad.

Variables


*background-work*

*background-work*: background-worksource

*use-etie*

*use-etie*: symbolsource

prototype-h

source

Types


instance

instance: drawablesource
Fields
type: type
id: int16
bsphere: vector
bucket-index: uint16
error: pointer
origin: matrix4h
unknown-vector: vector
wind-index: uint16

prototype-array-shrub-info

prototype-array-shrub-info: basicsource
Fields
type: type
prototype-inline-array-shrub: prototype-inline-array-shrub
wind-vectors: uint32

prototype-array-tie

prototype-array-tie: arraysource
Fields
type: type
length: int32
allocated-length: int32
content-type: type
data: uint8
array-data: prototype-bucket-tie
Methods
login(obj: prototype-array-tie) => nonesource

prototype-bucket

prototype-bucket: basicsource
Fields
type: type
name: string
flags: uint32
in-level: uint16
utextures: uint16
geometry: drawable
dists: vector
rdists: vector
next: uint32
count: uint16
near-plane: meters
near-stiff: meters
mid-plane: meters
far-plane: meters
rlength-near: float
rlength-stiff: float
rlength-mid: float
stiffness: float
next-clear: uint128
next-clear-1: int32
next-clear-2: int32
next-clear-3: int32
next-clear-4: int32
count-clear: uint64

prototype-bucket-shrub

prototype-bucket-shrub: prototype-bucketsource
Fields
type: type
name: string
flags: uint32
in-level: uint16
utextures: uint16
geometry: drawable
dists: vector
rdists: vector
next: uint32
count: uint16
near-plane: meters
near-stiff: meters
mid-plane: meters
far-plane: meters
rlength-near: float
rlength-stiff: float
rlength-mid: float
stiffness: float
next-clear: uint128
next-clear-1: int32
next-clear-2: int32
next-clear-3: int32
next-clear-4: int32
count-clear: uint64
mod-count: uint16
last: dma-packet
count-clear-qword: uint128
last-clear: uint128

prototype-bucket-tie

prototype-bucket-tie: prototype-bucketsource
Fields
type: type
name: string
flags: uint32
in-level: uint16
utextures: uint16
geometry: drawable
dists: vector
rdists: vector
next: uint32
count: uint16
near-plane: meters
near-stiff: meters
mid-plane: meters
far-plane: meters
rlength-near: float
rlength-stiff: float
rlength-mid: float
stiffness: float
next-clear: uint128
next-clear-1: int32
next-clear-2: int32
next-clear-3: int32
next-clear-4: int32
count-clear: uint64
generic-count: uint16
generic-next: uint32
frag-count: uint8
index-start: uint8
base-qw: uint16
envmap-rfade: float
envmap-fade-far: float
envmap-shader: adgif-shader
collide-frag: drawable-inline-array-collide-fragment
tie-colors: time-of-day-palette
data: uint32
color-index-qwc: uint32
generic-next-clear: uint128
generic-count-clear: uint128
geometry-override: prototype-tie

prototype-inline-array-shrub

prototype-inline-array-shrub: drawablesource
Fields
type: type
id: int16
bsphere: vector
length: int16
data: prototype-bucket-shrub
_pad: uint32

proxy-prototype-array-tie

proxy-prototype-array-tie: basicsource
Fields
type: type
prototype-array-tie: prototype-array-tie
wind-vectors: uint32

subdivide-h

source

Types


ambient-area

ambient-area: structuresource
Fields
ambient-list: ambient-list

background-area

background-area: structuresource
Fields
dma-area: dma-area
vis-list: uint8

dma-area

dma-area: structuresource
Fields
draw-node-dma: draw-node-dma
tfrag-dma: tfrag-dma
instance-shrub-dma: instance-shrub-dma
instance-tie-dma: instance-tie-dma
prototype-tie-dma: prototype-tie-dma
time-of-day-dma: time-of-day-dma
decomp-work: decomp-work
ocean-vertex: ocean-vertex

foreground-area

foreground-area: structuresource
Fields
joint-work: joint-work
generic-work: generic-work
bone-mem: bone-memory
shadow-work: shadow-work

gs-packed-gt

gs-packed-gt: structuresource

gs-packed-gt4

gs-packed-gt4: structuresource
Fields
data: gs-packed-gt

gs-packed-rgba

gs-packed-rgba: structuresource
Fields
data: int32
red: int32
green: int32
blue: int32
alpha: int32

gs-packed-stq

gs-packed-stq: structuresource
Fields
data: float
tex-s: float
tex-t: float
tex-q: float
quad: uint128

gs-packed-xyzw

gs-packed-xyzw: structuresource
Fields
data: int32
x: int32
y: int32
z: int32
w: int32
quad: uint128

subdivide-dists

subdivide-dists: structuresource
Fields
data: uint32
vector: vector
k0s: uint128
k1s: uint128

subdivide-settings

subdivide-settings: basicsource
Fields
type: type
dist: float
meters: float
close: float
far: float

terrain-bsp

terrain-bsp: structuresource
Fields
lev-index: int32
mood: basic

terrain-context

terrain-context: structuresource
Fields
bsp: terrain-bsp
work: work-area

terrain-stats

terrain-stats: structuresource
Fields
pris: tr-stat
tie-generic: tr-stat
tie: tr-stat
tie-near: tr-stat
shrub-near: tr-stat
shrub: tr-stat
tfrag-near: tr-stat
tfrag: tr-stat
billboard: tr-stat
trans-tfrag: tr-stat
trans-tfrag-near: tr-stat
trans-pris: tr-stat
trans-shrub: tr-stat
ocean-mid: tr-stat
ocean-near: tr-stat
total: tr-stat

work-area

work-area: structuresource
Fields
background: background-area
foreground: foreground-area
ambient: ambient-area

Variables


*collide-stats*

*collide-stats*: collide-statssource

*terrain-stats*

*terrain-stats*: terrain-statssource

subdivide

source

Functions


clear-tr-stat

clear-tr-stat(arg0: tr-stat) => nonesource

end-perf-stat-collection

end-perf-stat-collection() => nonesource

perf-stat-bucket->string

perf-stat-bucket->string(arg0: perf-stat-bucket) => stringsource
print-perf-stats() => nonesource
print-terrain-stats() => nonesource
print-tr-stat(stat: tr-stat, name: string, dest: string) => nonesource

set-tfrag-dists!

set-tfrag-dists!(arg0: tfrag-dists) => nonesource

start-perf-stat-collection

start-perf-stat-collection() => nonesource

update-subdivide-settings!

update-subdivide-settings!(settings: subdivide-settings, math-cam: math-camera, idx: int) => nonesource
Change the subdivide settings.

Variables


*gomi-stats-hack*

*gomi-stats-hack*: inline-arraysource

*merc-global-stats*

*merc-global-stats*: merc-global-statssource

*perf-stats*

*perf-stats*: perf-stat-arraysource

*stat-string-tfrag-near*

*stat-string-tfrag-near*: stringsource

*stat-string-tfrag*

*stat-string-tfrag*: stringsource

*stat-string-total*

*stat-string-total*: stringsource

*subdivide-settings*

*subdivide-settings*: subdivide-settingssource

*terrain-context*

*terrain-context*: terrain-contextsource

GSH_BUCKET

GSH_BUCKET: bucket-idsource

GSH_ENABLE

GSH_ENABLE: symbolsource

GSH_MAX_DISPLAY

GSH_MAX_DISPLAY: basicsource

GSH_TIME

GSH_TIME: intsource

GSH_WHICH_STAT

GSH_WHICH_STAT: intsource

wind-h

source

Types


wind-vector

wind-vector: structuresource
Fields
wind-pos: vector2w
wind-vel: vector2w

wind-work

wind-work: basicsource
Fields
type: type
wind-array: vector
wind-normal: vector
wind-temp: vector
wind-force: float
wind-time: uint32

Functions


wind-get-hashed-index

wind-get-hashed-index(arg0: vector) => intsource

Variables


*wind-scales*

*wind-scales*: arraysource

Functions


update-wind

update-wind(arg0: wind-work, arg1: array) => nonesource

Variables


*wind-work*

*wind-work*: wind-worksource